How baranwal-47/web-pentest works
This is a FastAPI-based penetration-testing platform. A user submits a target and scan options through the web interface or API; the scan endpoint schedules execution, the service runs selected security tools, normalizes findings, persists results, and generates reports. Separate API routes expose scan history, vulnerabilities, and report downloads. Quick/deep modes, progress monitoring, risk scoring, and HTML/JSON/XML reporting are documented capabilities; several details are not visible in the sampled excerpts, so their connections are omitted rather than inferred.
Main entry points: scan_service.py Scan Orchestrator · scans.py Scan Routes · scan.py Scan Data Access · main.py FastAPI App
Components 20
Web Interface
- FastAPI App
app/main.py - Scan Pages
app/templates
API and Domain
- Scan Routes
app/api/v1/scans.py - Vulnerability Routes
app/api/v1/vulnerabilities.py - Report Routes
app/api/v1/reports.py - Request Schemas
app/schemas/scan.py
Scan Execution
- Scan Orchestrator
app/services/scan_service.py - Nmap Adapter
app/utils/basic_nmap_wrapper.py - Nikto Adapter
app/utils/basic_nikto_wrapper.py - ZAP Adapter
app/utils/basic_zap_wrapper.py - Burp Adapter
app/utils/burp_pro_wrapper_v01.py
Persistence and Reporting
- Scan Data Access
app/crud/scan.py - Scan Records
app/models/scan.py - DB Session Setup
app/database.py - SQLite Database
- Report Generator
app/utils/basic_report_generator.py
Other components
- Tester
- Browser Client
- Security Tools
- Report Files
reports
Connections 27
- Tester → Browser Client: uses
README.md - Browser Client → FastAPI App: opens interface
README.md - FastAPI App → Scan Pages: renders
app/main.py - FastAPI App → Scan Routes: mounts routes
app/main.py - Browser Client → Scan Routes: submits scans
README.md - Scan Routes → Request Schemas: validates with
app/api/v1/scans.py - Scan Routes → Scan Orchestrator: schedules
app/api/v1/scans.py - Scan Orchestrator → Nmap Adapter: runs
app/services/scan_service.py - Scan Orchestrator → Nikto Adapter: runs
app/services/scan_service.py - Scan Orchestrator → ZAP Adapter: runs
app/services/scan_service.py - Scan Orchestrator → Burp Adapter: runs
app/services/scan_service.py - Nmap Adapter → Security Tools: invokes
- Nikto Adapter → Security Tools: invokes
- ZAP Adapter → Security Tools: invokes
- Burp Adapter → Security Tools: calls API
app/utils/burp_pro_wrapper_v01.py - Scan Orchestrator → Scan Data Access: persists findings
app/services/scan_service.py - Scan Data Access → Scan Records: queries records
app/crud/scan.py - FastAPI App → DB Session Setup: initializes
app/main.py - DB Session Setup → SQLite Database: connects to
app/database.py - DB Session Setup → Scan Records: creates tables
app/database.py - Scan Routes → Scan Data Access: reads and updates
app/api/v1/scans.py - Vulnerability Routes → Scan Data Access: queries findings
app/api/v1/vulnerabilities.py - Scan Orchestrator → Report Generator: generates reports
app/services/scan_service.py - Report Routes → Report Generator: regenerates reports
app/api/v1/reports.py - Report Routes → Scan Data Access: loads report data
app/api/v1/reports.py - Report Generator → Report Files: writes reports
- Report Routes → Report Files: serves downloads
app/api/v1/reports.py