How nemsensei/nopainnoscan works
NoPainNoScan is an Active Directory internal-pentest toolkit: discovery produces host and port inventories, service-specific checks produce structured findings, and a standalone generator aggregates outputs into HTML. Its optional local FastAPI UI manages campaigns and runs, launches the same scripts, parses results, streams progress, and exports reports. The README documents the CLI workflow; sampled UI modules show key API-to-service relationships. Some internal orchestration is only indicated by source references, so uncertain links are omitted or marked dashed.
Main entry points: ad_recon_userless.py Host inventory · check_dc.py Domain controller audit · npns_common.py Shared scan helpers · main.py FastAPI application
Components 31
Network discovery
- Network discovery
ad_recon_userless.py - Host inventory
ad_recon_userless.py
Service checks
- Domain controller audit
check_dc.py - LDAP audit
check_ldap.py - SMB audit
check_smb.py - DNS audit
check_dns.py - FTP audit
check_ftp.py - HTTP audit
check_http.py - IPMI audit
check_ipmi.py - Kerberos audit
check_kerberos.py - MSSQL audit
check_mssql.py - RDP audit
check_rdp.py - SNMP audit
check_snmp.py - SSH audit
check_ssh.py - WinRM audit
check_winrm.py
Reporting
- HTML report generator
generate_report.py
Web interface
- FastAPI application
webui/app/main.py - UI configuration
webui/app/config.py - Check registry
webui/app/scanner/registry.py - Scan API
webui/app/scanner/routes.py - Run job manager
webui/app/scanner/jobs.py - Script runner
webui/app/scanner/runner.py - Campaign and run store
webui/app/campaigns/store.py - Results API
webui/app/parsers/routes.py - Output parser
webui/app/parsers/outputs.py - Report API
webui/app/reports/routes.py - Web report exporter
webui/app/reports/export.py
Shared runtime
- Shared scan helpers
npns_common.py - Progress emitter
_npns_progress.py
Other components
- Pentest operator
- Browser user
Connections 48
- Pentest operator → Network discovery: starts discovery
README.md - Network discovery → Host inventory: writes inventory
README.md - Pentest operator → Domain controller audit: runs checks
README.md - Pentest operator → LDAP audit: runs checks
README.md - Pentest operator → SMB audit: runs checks
README.md - Pentest operator → DNS audit: runs checks
README.md - Pentest operator → FTP audit: runs checks
README.md - Pentest operator → HTTP audit: runs checks
README.md - Pentest operator → IPMI audit: runs checks
README.md - Pentest operator → Kerberos audit: runs checks
README.md - Pentest operator → MSSQL audit: runs checks
README.md - Pentest operator → RDP audit: runs checks
README.md - Pentest operator → SNMP audit: runs checks
README.md - Pentest operator → SSH audit: runs checks
README.md - Pentest operator → WinRM audit: runs checks
README.md - Host inventory → Domain controller audit: supplies targets
README.md - Host inventory → LDAP audit: supplies targets
README.md - Host inventory → SMB audit: supplies targets
README.md - Host inventory → DNS audit: supplies targets
README.md - Host inventory → FTP audit: supplies targets
README.md - Host inventory → HTTP audit: supplies targets
README.md - Host inventory → IPMI audit: supplies targets
README.md - Host inventory → Kerberos audit: supplies targets
README.md - Host inventory → MSSQL audit: supplies targets
README.md - Host inventory → RDP audit: supplies targets
README.md - Host inventory → SNMP audit: supplies targets
README.md - Host inventory → SSH audit: supplies targets
README.md - Host inventory → WinRM audit: supplies targets
README.md - Pentest operator → HTML report generator: requests report
README.md - Domain controller audit → HTML report generator: provides outputs
README.md - LDAP audit → HTML report generator: provides outputs
README.md - SMB audit → HTML report generator: provides outputs
README.md - Shared scan helpers → Progress emitter: imports emitter
npns_common.py - Domain controller audit → Shared scan helpers: uses helpers
check_dc.py - LDAP audit → Shared scan helpers: uses helpers
check_ldap.py - SMB audit → Shared scan helpers: uses helpers
check_smb.py - Network discovery → Shared scan helpers: uses helpers
ad_recon_userless.py - Browser user → FastAPI application: uses interface
README.md - FastAPI application → Scan API: registers routes
webui/app/main.py - FastAPI application → Report API: registers routes
webui/app/main.py - FastAPI application → UI configuration: loads settings
webui/app/main.py - Scan API → Run job manager: starts and tracks
webui/app/scanner/routes.py - Scan API → Campaign and run store: manages records
webui/app/scanner/routes.py - Run job manager → Script runner: executes commands
webui/app/scanner/jobs.py - Run job manager → Campaign and run store: persists runs
webui/app/scanner/jobs.py - Script runner → Check registry: builds from definitions
webui/app/scanner/runner.py - Script runner → Network discovery: launches scripts
- Script runner → Domain controller audit: launches scripts