How jorgbot/php2shell works
PHP2Shell is a defensive PHP vulnerability reconnaissance and audit CLI. Users provide a URL, target list, or local-audit option; the suite assesses remote targets or local PHP configuration, reports findings, and can export or notify. The README documents capabilities, but the source excerpt is partial, so internal call ownership and several implementation details cannot be verified; documented relationships use README evidence.
Main entry points: audit_php2shell.py Remote auditor
Components 21
Inputs and orchestration
- Audit CLI
audit_php2shell.py - URL or target list
- Remote auditor
audit_php2shell.py
Remote reconnaissance
- PHP exposure check
audit_php2shell.py - Ecosystem fingerprinting
audit_php2shell.py - SAPI detection
audit_php2shell.py - CMS and framework detection
audit_php2shell.py - OS fingerprinting
audit_php2shell.py - WAF and CDN detection
audit_php2shell.py - TLS certificate inspection
audit_php2shell.py
Local audit
- Local PHP audit
audit_php2shell.py
Findings and outputs
- Audit findings
audit_php2shell.py - JSON report
audit_php2shell.py - CSV report
audit_php2shell.py - SARIF report
audit_php2shell.py - HTML dashboard
audit_php2shell.py - Webhook notifier
audit_php2shell.py
Other components
- Operator
- Remote PHP site
- PHP runtime and php.ini
- Webhook destination
Connections 22
- Operator → Audit CLI: starts audit
README.md - Operator → URL or target list: provides targets
README.md - URL or target list → Remote auditor: selects remote audit
README.md - Audit CLI → Remote auditor: runs remote audit
README.md - Remote auditor → Remote PHP site: audits remotely
README.md - Remote auditor → PHP exposure check: checks exposure
README.md - Remote auditor → Ecosystem fingerprinting: fingerprints
README.md - Ecosystem fingerprinting → SAPI detection: detects
README.md - Ecosystem fingerprinting → CMS and framework detection: detects
README.md - Ecosystem fingerprinting → OS fingerprinting: detects
README.md - Ecosystem fingerprinting → WAF and CDN detection: detects
README.md - Remote auditor → TLS certificate inspection: inspects certificates
README.md - Audit CLI → Local PHP audit: selects local audit
README.md - Local PHP audit → PHP runtime and php.ini: audits configuration
README.md - Remote auditor → Audit findings: produces results
README.md - Local PHP audit → Audit findings: produces findings
README.md - Audit findings → JSON report: exports JSON
README.md - Audit findings → CSV report: exports CSV
README.md - Audit findings → SARIF report: exports SARIF
README.md - Audit findings → HTML dashboard: renders dashboard
README.md - Audit findings → Webhook notifier: dispatches alerts
README.md - Webhook notifier → Webhook destination: sends notification
README.md