Skip to content

πŸ” A powerful Node.js-based offensive security toolbox for security testing, subdomain/content discovery, SSL and header checks, and Tor proxying β€” all in one dashboard.

Notifications You must be signed in to change notification settings

pentesterhelper/PHToolBox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ› οΈ PHToolBox - Offensive Security Toolkit

PHToolBox is an advanced penetration testing toolbox powered by Node.js. It offers a powerful web-based interface for running vulnerability assessments, subdomain and content discovery, security header checks, and proxying traffic via Tor.

βœ… Developed for bug bounty hunters, red teamers, and security researchers.


πŸ” Features

  • πŸ”Έ HTTP Verb Scanner – Detect supported HTTP methods.
  • πŸ”Έ Security Headers Checker – Identify missing security headers.
  • πŸ”Έ Weak SSL Scanner – Analyze weak SSL configurations.
  • πŸ”Έ Server Header Analyzer – Reveal server fingerprinting headers.
  • πŸ”Έ Host Header Injection Test – Check for host header vulnerabilities.
  • πŸ”Έ Content Discovery – Perform brute-force endpoint discovery with custom wordlists.
  • πŸ”Έ Subdomain Discovery – Discover subdomains via VirusTotal, Wayback Machine, and brute-force.
  • πŸ”Έ Checklist Viewer – Load and view pre-built application checklists.
  • πŸ”Έ AI Integration (Gemini) – De-obfuscate JS code or generate text via Google Gemini API.
  • πŸ”Έ Tor Proxy Integration – Route traffic through Tor and rotate IPs.
  • πŸ”Έ System Proxy Toggle – Set/unset system-wide proxy settings via the web UI.
  • πŸ”Έ Wordlist Upload Support – Upload and manage .txt wordlists directly.

πŸ–₯️ Demo

Runs locally on:
http://localhost:9999


πŸ“¦ Installation

git clone https://github.com/yourusername/PHToolBox.git
cd PHToolBox
npm install

πŸ—οΈ Configuration

Create a keys.js file in the root with your API keys:

module.exports = {
  GEMINI_API_KEY: 'your-google-gemini-api-key',
  VIRUSTOTAL_API_KEY: 'your-virustotal-api-key'
};

πŸš€ Usage

⚠️ Run as Administrator/root

node run.js

Then open your browser to: http://localhost:9999


πŸ” Endpoints

πŸ” Security APIs

Method Endpoint Description
POST /API/testAllMethods Test HTTP methods
POST /API/checkSecurityHeaders Check security headers
POST /API/checkWeakSSL Analyze SSL security
GET /api/getServerHeader?url= Fetch server headers
GET /api/host-header-injection?url= Host header injection test
GET /getDomainIP?domain= Get IP of domain
GET /waybackurls?domain= Extract archived URLs

πŸ“‚ Wordlist Management

Method Endpoint Description
POST /api/upload-wordlist Upload wordlist
GET /api/wordlists List uploaded wordlists
GET /api/wordlist-count?path= Count wordlist entries
POST /api/subdomain-upload-wordlist Upload subdomain wordlist
GET /api/subdomain-wordlists List subdomain wordlists

πŸ”Ž Discovery

Method Endpoint Description
GET /api/discovery-stream Stream endpoint discovery
GET /api/subdomain-discovery-stream Stream subdomain brute force
GET /api/subdomains-online?domain= Get known subdomains

πŸ€– Gemini AI

Method Endpoint Description
POST /gemini-AI-generate Process prompt using Gemini

πŸ•΅οΈβ€β™‚οΈ Tor + Proxy

Method Endpoint Description
GET /start-tor Start Tor process
POST /tor-rotate Rotate Tor IP
GET /tor-ip Get current Tor IP
GET /stop-tor Stop Tor & disable proxy
GET /set-system-proxy Enable system proxy
GET /unset-system-proxy Disable system proxy
GET /proxy-status Check proxy status

πŸ“ Directory Structure

PHToolBox/
β”œβ”€β”€ API/
β”‚   β”œβ”€β”€ getVerbRequest.js
β”‚   β”œβ”€β”€ getMissingSecurityHeader.js
β”‚   β”œβ”€β”€ getWeakSSL.js
β”‚   β”œβ”€β”€ getServerHeader.js
β”‚   └── getHostHeaderInjection.js
β”œβ”€β”€ Json/
β”‚   └── static_web_application_checklist.json
β”œβ”€β”€ public/
β”‚   β”œβ”€β”€ index.html
β”‚   β”œβ”€β”€ Checklist/
β”‚   └── WaybackUrlView.html
β”œβ”€β”€ wordlists/
β”œβ”€β”€ subdomain_wordlists/
β”œβ”€β”€ tor.exe
β”œβ”€β”€ run.js
└── keys.js

πŸ›‘οΈ Disclaimer

This tool is for educational and authorized testing purposes only. Use responsibly. The author is not liable for misuse.


πŸ“¬ Contact

Created by kr rathod Website: https://pentesterhelper.in


⭐ Support

If you like this project, give it a ⭐ on GitHub!

About

πŸ” A powerful Node.js-based offensive security toolbox for security testing, subdomain/content discovery, SSL and header checks, and Tor proxying β€” all in one dashboard.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published