A comprehensive, Metasploit-class exploit development and penetration testing framework built entirely in Python.
105 modules β’ 7 categories β’ Auto-Exploitation β’ Encrypted C2 β’ WAF Bypass β’ Real-Time Dashboard
π Download the CXploit User Manual v2.0 (PDF)
This framework is designed for authorized security testing and educational purposes ONLY.
Unauthorized access to computer systems is illegal. Always obtain written permission before testing any system you do not own. The developers assume no liability for misuse of this software. By using this tool, you agree to comply with all applicable local, state, national, and international laws.
- Overview
- What's New in v2.0
- User Manual (PDF)
- Features
- Architecture
- Installation
- Quick Start
- CLI Reference
- Complete Module Catalog (105 Modules)
- REST API
- Configuration
- Report Generation
- Session Management
- Plugin System
- Project Structure
- Development
- Troubleshooting
- Contributing
- Changelog
- License
CXploit is a comprehensive, modular exploit development framework written entirely in Python. With 105 loaded modules across 7 categories, it provides security professionals with a Metasploit-class integrated environment for:
- Reconnaissance β Port scanning, host discovery, service enumeration, OS fingerprinting, web scanning, vulnerability scanning, OSINT, DNS enumeration, SCADA/ICS scanning, WiFi analysis, blockchain auditing, firmware analysis, supply chain auditing, and offline CVE database matching
- Auto-Exploitation β AI-powered pipeline: scan β service detection β CVE matching β automated exploitation
- Exploitation β SQL injection, XSS, LFI/RFI, SSH brute-forcing, buffer overflow toolkits, FTP/Telnet/RDP/VNC/SMTP exploits, database exploits (MySQL, MSSQL, PostgreSQL, Oracle, Redis), browser exploits, WebApp deserialization/SSRF/SSTI, IoT/MQTT/UPnP, and multi-protocol credential spraying
- Payload Generation β Reverse shells, bind shells, meterpreter-style stagers, polymorphic payloads with multi-layer encryption, shellcode generators, multi-handlers, and macro builders
- Post-Exploitation β System enumeration, persistence, credential harvesting, lateral movement, container escape, memory forensics, loot management, anti-forensics, ransomware simulation, Windows/Linux privilege escalation
- Evasion β AES/XOR encryption, traffic obfuscation, timing randomization, WAF detection & bypass (20+ WAFs), AV/AMSI bypass, DNS tunneling, JA3 fingerprint randomization
- C2 Infrastructure β Encrypted C2 server with AES-256 TCP/HTTP channels and deployable agent stubs
- Auxiliary β Credential sprayers, email testers, HTTP tunnels, SCADA scanners, hash crackers, multi-protocol scanners (FTP, HTTP, SSH, SSL, SNMP, NetBIOS, RDP, IPMI)
- Reporting β Professional HTML, JSON, PDF, and compliance reports with vulnerability severity ratings
The framework features a Metasploit-like interactive CLI with 72 commands, tab-completion, module search, session management, background jobs, attack chain automation, and an optional REST API for remote control.
| Category | v1.0 | v2.0 | New |
|---|---|---|---|
| Reconnaissance | 7 | 17 | WiFi, SCADA, OSINT, Blockchain, Firmware, Supply Chain, Wireless Protocol, Active Directory, Cloud, Threat Intel |
| Exploits | 5 | 20 | FTP, Telnet, RDP, VNC, SMTP, SNMP, LDAP, NFS, AD, Wireless, Cloud, MySQL, MSSQL, PostgreSQL, Oracle, Redis, Browser, WebApp, IoT |
| Payloads | 6 | 9 | Multi-Handler, Shellcode Generator, Macro Builder |
| Post-Exploitation | 2 | 10 | Lateral Movement, Container Escape, Memory Forensics, Loot Manager, Anti-Forensics, Ransomware Sim, Windows Privesc, Linux Privesc |
| Evasion | 2 | 7 | AV Evasion (AMSI), Traffic Evasion (DNS tunnel/JA3), additional encryption modules |
| Auxiliary | 2 | 23 | Email Tester, HTTP Tunnel, FTP/HTTP/SSH/SSL/SNMP/NetBIOS/RDP/IPMI Scanners, Credential Store, Report Generator |
| Total | 36 | 105 | +69 new modules |
- β
Fixed 88+ bare
except:clauses βexcept Exception:across 20+ files - β
Added
check()method to all module classes - β Suppressed paramiko TripleDES deprecation warning
- β Fixed duplicate banner display
- β Improved mobile tester tool detection output
- β All 153 Python files pass syntax verification with 0 errors
- β All 105 modules load, instantiate, and dispatch cleanly
- β 72 CLI commands verified (19 base + 53 extended)
| Feature | Description |
|---|---|
| 105 Built-in Modules | Ready-to-use modules across 7 categories |
| Dynamic Module Loader | Auto-discovers all modules at startup using Python package introspection |
| Thread-Safe Singleton | Framework core uses a locked singleton pattern for safe concurrent access |
| SQLite Database | Persistent storage for targets, services, vulnerabilities, credentials, sessions, and events |
| Context-Managed Sessions | All database operations use proper session scoping to prevent detached instance errors |
| Event System | Centralized logging with file output and event listeners |
| Configuration Manager | JSON-based config with dot-notation access and auto-merge with defaults |
| Safety System | Target authorization, emergency stop, rate limiting |
| Plugin Architecture | Extensible plugin system for custom functionality |
| Feature | Description |
|---|---|
| Auto-Exploitation (AutoPwn) | Automated scan β CVE match β exploit pipeline with one command |
| Offline CVE Database | 50+ CVEs across 14 services with version-range CVSS matching |
| WAF Detection & Bypass | Fingerprint 20+ WAFs and auto-generate mutated SQLi/XSS bypass payloads |
| Multi-Protocol Credential Sprayer | Single module for 11 protocols (SSH, FTP, HTTP, SMB, MySQL, RDP, etc.) |
| Polymorphic Payload Engine | Self-modifying payloads with 5 mutation types and multi-layer encryption |
| Encrypted C2 Infrastructure | AES-256 encrypted TCP/HTTP C2 server with deployable beacon agents |
| Real-Time Web Dashboard | Live vulnerability heatmap, session monitor, and event log |
| Attack Chain Automation | Create, save, and replay multi-step attack sequences |
| SCADA/ICS Scanning | Modbus, DNP3, BACnet, S7comm protocol scanning |
| IoT Exploitation | MQTT, UPnP, CoAP protocol attacks |
| Blockchain Auditing | Smart contract analysis and DeFi vulnerability detection |
| Feature | Description |
|---|---|
| Interactive Console | Metasploit-style prompt with prompt_toolkit |
| Tab Completion | Context-aware auto-completion for commands, modules, and options |
| 53 Extended Commands | Mobile testing, SCADA scan, WiFi scan, threat intel, compliance, and more |
| Session Management | Create, interact, background, and kill exploitation sessions |
| Background Jobs | Run modules in background threads with job tracking |
| Resource Scripts | Execute batch commands from .rc files |
| Emergency Stop | Instantly halt all module execution |
+------------------------------------------------------------------+
| main.py |
| (Entry Point) |
+-----------+-----------+-----------+-----------+-------------------+
| CLI | REST API | Dashboard | Plugins | Reporting |
| console | server | dashboard | manager | report_gen |
| commands | | | | compliance |
| completer | | | | |
+-----------+-----------+-----------+-----------+-------------------+
| Core Engine |
| framework | database | events | module_loader | autopwn |
| session | config | safety_checker | credential_store |
| report_generator | zeroday_detector |
+------------------------------------------------------------------+
| Modules (105 total) |
| Recon(17) | Exploits(20) | Payloads(9) | Post(10) | Evasion(7) |
| Auxiliary(23) | C2(2) | API/Dashboard(2) |
+------------------------------------------------------------------+
| Utilities |
| network | constants | validators | crypto |
+------------------------------------------------------------------+
- Python 3.10+ (tested on 3.10, 3.11, 3.12)
- pip (Python package manager)
- Git (for cloning)
git clone https://github.com/ravichandran3/cxploit-framework.git
cd cxploit-framework# Windows
python -m venv venv
.\venv\Scripts\activate
# Linux / macOS
python3 -m venv venv
source venv/bin/activatepip install -r requirements.txt| Package | Version | Purpose |
|---|---|---|
scapy |
2.5.0 | Raw packet crafting and network analysis |
paramiko |
3.4.0 | SSH protocol implementation |
requests |
2.31.0 | HTTP client for web exploits |
beautifulsoup4 |
4.12.2 | HTML parsing for web scanning |
colorama |
0.4.6 | Cross-platform terminal colors |
prompt-toolkit |
3.0.43 | Interactive CLI with tab-completion |
pycryptodome |
3.20.0 | AES, XOR, and other encryption |
jinja2 |
3.1.3 | HTML report templating |
reportlab |
4.1.0 | PDF report generation |
flask |
3.0.2 | REST API server and dashboard |
python-nmap |
0.7.1 | Nmap integration for scanning |
rich |
13.7.0 | Rich terminal formatting and tables |
aiohttp |
3.9.3 | Async HTTP operations |
sqlalchemy |
2.0.25 | Database ORM and session management |
These are NOT required but enhance mobile testing capabilities:
| Tool | Purpose | Install |
|---|---|---|
adb |
Android Debug Bridge | developer.android.com/studio |
apktool |
APK reverse engineering | github.com/iBotPeaches/Apktool |
jadx |
DEX to Java decompiler | github.com/skylot/jadx |
frida |
Dynamic instrumentation | pip install frida-tools |
objection |
Mobile exploration toolkit | pip install objection |
mitmproxy |
SSL/TLS interception | pip install mitmproxy |
python main.pyYou should see the CXploit banner and Ready! 105 modules loaded.
python main.pycxploit > search scan
recon/port_scanner β TCP/UDP port scanner with service detection
recon/vuln_scanner β Vulnerability scanner
recon/web_scanner β Web application scanner
recon/scada_scanner β SCADA/ICS scanner
recon/wifi_scanner β WiFi scanner
cxploit > use recon/port_scanner
cxploit (recon/port_scanner) > show options
cxploit (recon/port_scanner) > set RHOST 192.168.1.1
cxploit (recon/port_scanner) > set PORTS 1-1024
cxploit (recon/port_scanner) > set THREADS 100
cxploit (recon/port_scanner) > run
[+] 22/tcp OPEN (ssh)
[+] 80/tcp OPEN (http) | Apache/2.4.52
[+] 443/tcp OPEN (https)
cxploit (recon/port_scanner) > back
cxploit > show targets
cxploit > show vulns
cxploit > report html
cxploit > autopwn 192.168.1.0/24
This runs the full pipeline: scan β service detection β CVE matching β automated exploitation.
python main.py -r scripts/my_scan.rcpython main.py --api --api-port 8080| Command | Description |
|---|---|
help / ? |
Show all available commands |
banner |
Display the framework banner |
clear |
Clear the screen |
exit / quit |
Shutdown and exit the framework |
stats / sysinfo |
Show framework statistics |
| Command | Description |
|---|---|
use <module> |
Select a module (supports partial names) |
back |
Deselect the current module |
info |
Show detailed module information |
show modules |
List all 105 loaded modules |
show options |
Show current module's configurable options |
search <query> |
Search modules by name or description |
reload |
Reload the current module from disk |
| Command | Description |
|---|---|
set <OPT> <VALUE> |
Set a module option |
setg <OPT> <VALUE> |
Set a global option (persists across modules) |
unset <OPT> |
Clear a module option |
run / exploit |
Execute the current module |
bg / run -j |
Run module in a background thread |
check |
Check if target is vulnerable (without exploiting) |
jobs |
List background jobs |
jobs -k <id> |
Kill a background job |
| Command | Description |
|---|---|
sessions -l |
List all sessions |
sessions -i <id> |
Interact with a session (enter shell) |
sessions -k <id> |
Kill a specific session |
sessions -K |
Kill all sessions |
| Command | Description |
|---|---|
show targets |
Show all targets in the database |
show vulns |
Show discovered vulnerabilities |
show creds |
Show harvested credentials |
show sessions |
Show exploitation sessions |
show events |
Show recent event logs |
show stats |
Show framework statistics |
| Command | Description |
|---|---|
authorize <target> |
Authorize a target for testing |
emergency_stop |
Halt all module execution (toggle) |
scan <target> |
Quick port scan shortcut |
report <format> |
Generate report (html/json/pdf) |
compliance <framework> |
Generate compliance report (pci/hipaa/nist/gdpr) |
| Command | Description |
|---|---|
autopwn <target/CIDR> |
Run the full auto-exploitation pipeline |
dashboard [port] |
Launch the real-time web dashboard |
cve_search <service> [version] |
Search the offline CVE database |
chain create <name> |
Create a named attack chain |
chain add <command> |
Add a step to the current chain |
chain run [name] |
Execute an attack chain |
chain list |
List all defined chains |
chain save <file> |
Save chains to JSON file |
mobile_test [mode] |
Mobile application security testing |
scada_scan <target> |
SCADA/ICS protocol scanning |
wifi_scan [interface] |
WiFi network scanning |
threat_intel <target> |
Threat intelligence gathering |
supply_chain <project_dir> |
Supply chain security audit |
firmware <file> |
Firmware analysis |
blockchain <address> |
Blockchain/smart contract auditing |
osint <domain> |
OSINT intelligence gathering |
| Module | Description |
|---|---|
recon/port_scanner |
TCP/UDP port scanner with CIDR support, 5 timing profiles, OS fingerprinting |
recon/host_discovery |
Network host discovery using ARP, ICMP, TCP SYN |
recon/service_enum |
Deep service fingerprinting with version detection |
recon/os_fingerprint |
OS identification via TCP/IP stack analysis |
recon/web_scanner |
Web application scanner with directory brute-forcing and tech detection |
recon/vuln_scanner |
Automated vulnerability detection with CVE matching |
recon/cve_db |
Offline CVE database β 50+ CVEs across 14 services |
recon/dns_enum |
DNS enumeration β zone transfers, subdomain brute, wildcard detection |
recon/osint |
OSINT intelligence β WHOIS, DNS, subdomains, emails, certificate transparency |
recon/network_mapper |
Network mapping β ARP discovery, OS detection, topology visualization |
recon/wifi_scanner |
WiFi scanning β SSID discovery, encryption analysis, rogue AP detection |
recon/scada_scanner |
SCADA/ICS scanning β Modbus, DNP3, BACnet, S7comm, EtherNet/IP |
recon/threat_intel |
Threat intelligence β IOC analysis, STIX/TAXII, feed aggregation |
recon/supply_chain_auditor |
Supply chain audit β dependency CVE scanning, typosquat detection |
recon/firmware_analyzer |
Firmware analysis β binary extraction, string analysis, crypto detection |
recon/blockchain_auditor |
Blockchain audit β smart contract analysis, DeFi vulnerability detection |
recon/wireless_protocol |
Wireless protocol analyzer β Bluetooth, Zigbee, LoRa, NFC, Z-Wave |
| Module | Description |
|---|---|
exploit/web/sqli |
SQL injection β error/blind/time/union techniques, multi-DBMS |
exploit/web/xss |
Cross-site scripting β reflected, stored, DOM-based with WAF bypass |
exploit/web/lfi_rfi |
Local/Remote file inclusion with PHP wrappers and log poisoning |
exploit/web/advanced_web_exploit |
Advanced web β deserialization, SSRF, SSTI attacks |
exploit/network/ssh_brute |
SSH brute-force with wordlist support and multi-threading |
exploit/network/ftp_exploit |
FTP exploitation β anonymous login, path traversal, command injection |
exploit/network/telnet_exploit |
Telnet exploitation β default credentials, command injection |
exploit/network/rdp_exploit |
RDP exploitation β BlueKeep detection, brute-force, NLA bypass |
exploit/network/vnc_exploit |
VNC exploitation β auth bypass, brute-force, screenshot capture |
exploit/network/smtp_exploit |
SMTP exploitation β open relay, user enumeration, header injection |
exploit/network/snmp_exploit |
SNMP exploitation β community string brute-force, MIB walking |
exploit/network/ldap_exploit |
LDAP exploitation β anonymous bind, injection, password spraying |
exploit/network/nfs_exploit |
NFS exploitation β share enumeration, mount access, UID spoofing |
exploit/network/ad_exploit |
Active Directory β Kerberoasting, AS-REP roasting, DCSync |
exploit/network/wireless_exploit |
Wireless β WEP/WPA cracking, evil twin, deauth attacks |
exploit/network/cloud_exploit |
Cloud β S3 bucket enum, metadata service, IAM misconfiguration |
exploit/database/mysql_exploit |
MySQL β UDF injection, file read/write, privilege escalation |
exploit/database/mssql_exploit |
MSSQL β xp_cmdshell, linked servers, privilege escalation |
exploit/database/postgresql_exploit |
PostgreSQL β COPY command RCE, large object abuse |
exploit/database/oracle_exploit |
Oracle β TNS poisoning, Java stored procedure RCE |
exploit/database/redis_exploit |
Redis β unauthorized access, Lua sandbox escape, module loading |
exploit/bof/stack_overflow |
Buffer overflow β 5-stage exploitation workflow (fuzz/pattern/offset/badchars/exploit) |
exploit/browser/browser_exploit |
Browser exploitation β JS injection, WebRTC leak, credential stealing |
exploit/specialized/webapp_exploit |
WebApp advanced β deserialization chains, SSRF, SSTI |
exploit/specialized/iot_exploit |
IoT β MQTT exploitation, UPnP attacks, CoAP manipulation |
| Module | Description |
|---|---|
payload/reverse_shell |
Reverse shell multi-handler with interactive I/O |
payload/bind_shell |
Bind shell connector |
payload/meterpreter |
Meterpreter-style stager with 12+ built-in commands |
payload/encoder |
Payload encoder β XOR, Base64, custom schemes |
payload/generator |
Platform-specific payload generator |
payload/polymorphic |
Polymorphic payload engine β 5 mutation types, multi-layer encryption |
payload/multi_handler |
Multi-handler β manages multiple simultaneous payload connections |
payload/shellcode_generator |
Shellcode generator β x86/x64 shellcode for Windows/Linux |
payload/macro_builder |
Macro builder β Office VBA/HTA/JS payload generation |
| Module | Description |
|---|---|
post/sys_enum |
System enumeration β OS, users, software, network, processes |
post/persistence |
Persistence β registry, cron, services, scheduled tasks |
post/lateral_move |
Lateral movement β WMI, PsExec, SSH pivoting, pass-the-hash |
post/container_escape |
Container escape β Docker socket, privileged mode, kernel exploits |
post/memory_forensics |
Memory forensics β process dumping, credential extraction, DLL analysis |
post/loot_manager |
Loot manager β file search, credential harvesting, data exfiltration |
post/antiforensics |
Anti-forensics β log cleaning, timestamp modification, trace removal |
post/ransom_sim |
Ransomware simulation β safe encryption/decryption demo for training |
post/windows_post |
Windows post-exploitation β Mimikatz integration, UAC bypass, token manipulation |
post/linux_post |
Linux post-exploitation β privilege escalation, container detection, persistence |
| Module | Description |
|---|---|
evasion/encryption |
Payload encryption β AES-256 and XOR with self-decrypting stubs |
evasion/encryption/TrafficObfuscator |
Traffic obfuscation β user-agent rotation, domain fronting, jitter |
evasion/encryption/AntiForensics |
Anti-forensics β log cleaning, timestomping scripts |
evasion/encryption/TimingRandomizer |
Timing randomization β evade behavior-based detection |
evasion/waf_bypass |
WAF bypass β fingerprints 20+ WAFs, generates mutated payloads |
evasion/av_evasion |
AV evasion β AMSI bypass, obfuscation, process hollowing |
evasion/traffic_evasion |
Traffic evasion β DNS tunneling, JA3 fingerprint randomization |
| Module | Description |
|---|---|
auxiliary/tools/HTTPFileServer |
HTTP file server for payload delivery |
auxiliary/tools/DNSLookup |
DNS lookup and enumeration |
auxiliary/tools/HashCracker |
Hash cracker β MD5, SHA1, SHA256, brute-force |
auxiliary/tools/WordlistGenerator |
Wordlist generator with mutations and leet speak |
auxiliary/cred_sprayer |
Multi-protocol credential sprayer (11 protocols) |
auxiliary/email_tester |
Email security tester β SPF, DKIM, DMARC, open relay |
auxiliary/http_tunnel |
HTTP tunneling for firewall evasion |
auxiliary/hash_cracker |
Advanced hash cracker with rainbow tables |
auxiliary/ftp_scanner |
FTP vulnerability scanner β anonymous login, version detection |
auxiliary/http_scanner |
HTTP vulnerability scanner β headers, methods, misconfigurations |
auxiliary/ssh_scanner |
SSH scanner β algorithm enumeration, version detection |
auxiliary/ssl_scanner |
SSL/TLS scanner β certificate validation, cipher analysis, HSTS |
auxiliary/snmp_scanner |
SNMP scanner β community strings, MIB walking |
auxiliary/netbios_scanner |
NetBIOS scanner β name resolution, share enumeration |
auxiliary/rdp_scanner |
RDP scanner β NLA detection, version fingerprinting |
auxiliary/ipmi_scanner |
IPMI scanner β cipher 0 detection, hash extraction |
auxiliary/credential_store |
Credential store β centralized credential management |
auxiliary/report_generator |
Report generator β HTML/JSON/PDF output |
| Category | Modules |
|---|---|
| C2 Infrastructure | c2/c2_server (Encrypted C2 with AES-256), c2/c2_agent (Deployable beacon generator) |
| API & Dashboard | api/server (Flask REST API), api/dashboard (Real-time web dashboard) |
| Core | core/autopwn, core/credential_store, core/report_generator, core/zeroday_detector |
| Reporting | reporting/report_gen, reporting/compliance_report |
| Recon (additional) | recon/mobile_tester, recon/ad_enum, recon/bluetooth_scanner, recon/cert_analyzer, recon/cloud_scanner |
The framework includes a Flask-based REST API for remote control and integration.
python main.py --api --api-host 0.0.0.0 --api-port 5000| Method | Endpoint | Description |
|---|---|---|
GET |
/api/v1/status |
Framework status and version |
GET |
/api/v1/modules |
List all loaded modules |
GET |
/api/v1/modules/<name> |
Get module details and options |
POST |
/api/v1/modules/<name>/run |
Execute a module with options |
GET |
/api/v1/targets |
List all targets in database |
GET |
/api/v1/vulnerabilities |
List all discovered vulnerabilities |
GET |
/api/v1/sessions |
List active sessions |
POST |
/api/v1/report |
Generate a report |
curl -X POST http://localhost:5000/api/v1/modules/recon/port_scanner/run \
-H "Content-Type: application/json" \
-d '{"rhost": "192.168.1.1", "ports": "1-1024", "threads": "50"}'Configuration is stored in data/config.json and auto-created on first launch.
{
"framework": {
"max_threads": 10,
"default_timeout": 5,
"loglevel": "INFO"
},
"scanner": {
"scan_timeout": 3,
"max_concurrent_scans": 50,
"default_ports": "1-1024",
"service_detection": true
},
"payload": {
"default_lhost": "0.0.0.0",
"default_lport": 4444,
"encoder": "xor",
"iterations": 1
},
"reporting": {
"output_dir": "data/reports",
"default_format": "html",
"include_evidence": true
},
"safety": {
"require_authorization": false,
"rate_limit_rps": 100,
"auto_backup": true
}
}Generate professional penetration testing reports directly from the console.
cxploit > report html # HTML report with dark theme
cxploit > report json # Machine-readable JSON
cxploit > report pdf # PDF document
cxploit > compliance pci # PCI-DSS compliance report
cxploit > compliance hipaa # HIPAA compliance report
cxploit > compliance nist # NIST compliance report
cxploit > compliance gdpr # GDPR compliance report
- Executive Summary β Target count, vulnerability count, credential count
- Targets β IP, hostname, OS, status
- Vulnerabilities β Name, severity (Critical/High/Medium/Low), description, CVE, proof
- Credentials β Service, username, password/hash
- Compliance Mapping β Framework-specific requirement coverage
Reports are saved to data/reports/report_YYYYMMDD_HHMMSS.<format>.
Sessions represent active connections to compromised hosts.
# After a successful exploit with a reverse shell:
[+] Session created: a1b2c3d4
# List sessions
cxploit > sessions -l
# Interact with a session
cxploit > sessions -i a1b2c3d4
[*] Interactive session a1b2c3d4. Press Ctrl+C to background.
$ whoami
root
$ ^C
[*] Session a1b2c3d4 backgrounded
# Kill a session
cxploit > sessions -k a1b2c3d4
Extend the framework with custom plugins.
Create a new file in exploit_framework/plugins/custom/:
class MyPlugin:
"""My custom plugin."""
MODULE_INFO = {
"name": "My Plugin",
"description": "Does something useful",
"author": "You",
"rank": "normal",
}
def __init__(self):
self.framework = None
self.options = {
"TARGET": {"value": None, "required": True, "description": "Target host"},
}
def run(self):
target = self.options["TARGET"]["value"]
print(f"[+] Running against {target}")
return {"status": "complete"}
def check(self):
return TrueThe module loader will auto-discover it on next startup.
cxploit-framework/
βββ main.py # Entry point
βββ requirements.txt # Python dependencies
βββ README.md # This file
βββ exploit_framework/
β βββ __init__.py # Package init + BANNER
β βββ api/
β β βββ server.py # Flask REST API
β β βββ dashboard.py # Real-time web dashboard
β βββ auxiliary/ # 23 modules
β β βββ tools.py # HTTP server, hash cracker, wordlist gen, DNS
β β βββ cred_sprayer.py # Multi-protocol credential sprayer
β β βββ email_tester.py # Email security tester
β β βββ http_tunnel.py # HTTP tunneling
β β βββ ftp_scanner.py # FTP scanner
β β βββ http_scanner.py # HTTP scanner
β β βββ ssh_scanner.py # SSH scanner
β β βββ ssl_scanner.py # SSL/TLS scanner
β β βββ snmp_scanner.py # SNMP scanner
β β βββ netbios_scanner.py # NetBIOS scanner
β β βββ rdp_scanner.py # RDP scanner
β β βββ ipmi_scanner.py # IPMI scanner
β β βββ credential_store.py # Credential management
β β βββ report_generator.py # Report generator
β βββ c2/
β β βββ c2_server.py # Encrypted C2 server (AES-256)
β β βββ c2_agent.py # Deployable agent generator
β βββ cli/
β β βββ commands.py # Command handlers
β β βββ completer.py # Tab-completion engine
β β βββ console.py # Interactive console (72 commands)
β βββ core/
β β βββ autopwn.py # Auto-exploitation engine
β β βββ config.py # Configuration manager
β β βββ database.py # SQLAlchemy ORM
β β βββ events.py # Event system
β β βββ framework.py # Central engine (singleton)
β β βββ module_loader.py # Dynamic module discovery
β β βββ session.py # Session management
β β βββ credential_store.py # Credential store
β β βββ report_generator.py # Report generator
β β βββ zeroday_detector.py # Zero-day detection engine
β βββ evasion/ # 7 modules
β β βββ encryption.py # AES/XOR encryption + 4 classes
β β βββ waf_bypass.py # WAF detection & bypass
β β βββ av_evasion.py # AV/AMSI bypass
β β βββ traffic_evasion.py # DNS tunnel, JA3 randomization
β βββ exploits/ # 20 modules
β β βββ base.py # Abstract base class
β β βββ bof/stack_overflow.py # Buffer overflow toolkit
β β βββ browser/browser_exploit.py # Browser exploitation
β β βββ database/ # MySQL, MSSQL, PostgreSQL, Oracle, Redis
β β βββ network/ # SSH, FTP, Telnet, RDP, VNC, SMTP, SNMP, LDAP, NFS, AD, Wireless, Cloud
β β βββ specialized/ # WebApp, IoT
β β βββ web/ # SQLi, XSS, LFI/RFI
β βββ payloads/ # 9 modules
β β βββ reverse_shell.py # Reverse shell
β β βββ bind_shell.py # Bind shell
β β βββ meterpreter.py # Meterpreter stager
β β βββ polymorphic.py # Polymorphic engine
β β βββ multi_handler.py # Multi-handler
β β βββ shellcode_generator.py # Shellcode generator
β β βββ macro_builder.py # Office macro builder
β βββ post/ # 10 modules
β β βββ sys_enum.py # System enumeration
β β βββ persistence.py # Persistence mechanisms
β β βββ lateral_move.py # Lateral movement
β β βββ container_escape.py # Container escape
β β βββ memory_forensics.py # Memory forensics
β β βββ loot_manager.py # Loot management
β β βββ antiforensics.py # Anti-forensics
β β βββ ransom_sim.py # Ransomware simulation
β β βββ windows_post.py # Windows post-exploitation
β β βββ linux_post.py # Linux post-exploitation
β βββ recon/ # 17 modules
β β βββ port_scanner.py # Port scanner
β β βββ host_discovery.py # Host discovery
β β βββ service_enum.py # Service enumeration
β β βββ os_fingerprint.py # OS fingerprinting
β β βββ web_scanner.py # Web scanner
β β βββ vuln_scanner.py # Vulnerability scanner
β β βββ cve_db.py # CVE database
β β βββ dns_enum.py # DNS enumeration
β β βββ osint.py # OSINT intelligence
β β βββ network_mapper.py # Network mapping
β β βββ wifi_scanner.py # WiFi scanning
β β βββ scada_scanner.py # SCADA/ICS scanning
β β βββ threat_intel.py # Threat intelligence
β β βββ supply_chain_auditor.py # Supply chain audit
β β βββ firmware_analyzer.py # Firmware analysis
β β βββ blockchain_auditor.py # Blockchain auditing
β β βββ wireless_protocol.py # Wireless protocol analysis
β βββ reporting/
β β βββ report_gen.py # HTML/JSON/PDF reports
β β βββ compliance_report.py # Compliance reports
β βββ utils/
β βββ constants.py # Framework constants
β βββ crypto.py # Crypto utilities
β βββ network.py # Network helpers
β βββ validators.py # Input validation
βββ data/ # Runtime data
β βββ config.json # Configuration
β βββ logs/ # Log files
β βββ reports/ # Generated reports
βββ plugins/ # Custom plugins
- Create a new Python file in the appropriate category directory
- Define a class with
MODULE_INFOdict, arun()method, and acheck()method - Add
optionsdict for configurable parameters - The module loader auto-discovers it on next startup
# exploit_framework/recon/my_scanner.py
class MyScanner:
MODULE_INFO = {
"name": "My Scanner",
"description": "Scans for something specific",
"author": "Your Name",
"rank": "good",
}
def __init__(self):
self.framework = None
self.options = {
"RHOST": {"value": None, "required": True, "description": "Target host"},
"RPORT": {"value": "80", "required": False, "description": "Target port"},
}
def run(self):
host = self.options["RHOST"]["value"]
port = int(self.options["RPORT"]["value"])
print(f"[+] Scanning {host}:{port}")
if self.framework and hasattr(self.framework, "db"):
self.framework.db.add_target(host, status="up")
return {"host": host, "port": port, "status": "complete"}
def check(self):
"""Quick vulnerability check."""
return Truepython -c "
from exploit_framework.core.framework import Framework
fw = Framework()
fw.initialize()
print(f'Modules: {fw.modules.count()}')
print(f'Stats: {fw.get_stats()}')
fw.shutdown()
"| Issue | Solution |
|---|---|
ModuleNotFoundError |
Ensure venv is activated and pip install -r requirements.txt complete |
0 modules loaded |
Check that exploit_framework/__init__.py exists and sys.path is correct |
Port already in use |
Another process is using the port. Use netstat -tlnp to find it |
Permission denied (scanning) |
Some scans require root/admin privileges (especially UDP, ICMP) |
Emergency stop active |
Run emergency_stop again to toggle it off |
Target not authorized |
Run authorize <target> before testing |
| Mobile tools "Not installed" | These are optional external tools β see Installation for install instructions |
Edit data/config.json:
{
"framework": {
"loglevel": "DEBUG"
}
}Logs are stored in data/logs/.
This project is licensed under PolyForm Strict 1.0.0, which does not permit redistribution or modification by anyone other than the copyright holder. As a result, this repository does not accept pull requests or external code contributions.
If you find a bug or security issue, please open an issue describing it β do not submit a patch.
- PEP 8 compliance
- Docstrings on all public methods
- Use
except Exception:(never bareexcept:) - No hardcoded values β use
self.optionsfor configurable parameters - Store results in the database when possible
- +69 new modules β expanded from 36 to 105 modules
- Added database exploits: MySQL, MSSQL, PostgreSQL, Oracle, Redis
- Added network exploits: FTP, Telnet, RDP, VNC, SMTP, SNMP, LDAP, NFS, AD, Wireless, Cloud
- Added advanced recon: OSINT, SCADA, WiFi, Blockchain, Firmware, Supply Chain, Threat Intel
- Added post-exploitation: Lateral movement, container escape, memory forensics, anti-forensics
- Added evasion: AV/AMSI bypass, DNS tunneling, JA3 randomization
- Added payloads: Multi-handler, shellcode generator, macro builder
- Added auxiliary scanners: FTP, HTTP, SSH, SSL, SNMP, NetBIOS, RDP, IPMI
- Fixed 88+ bare
except:clauses for proper error handling - Added
check()method to all module classes - Suppressed paramiko deprecation warnings
- Fixed duplicate banner display
- Updated CLI to 72 commands (19 base + 53 extended)
- Initial release with 36 modules
- Core framework with dynamic module loader
- Interactive CLI with tab-completion
- REST API and web dashboard
- Auto-exploitation engine
- Encrypted C2 infrastructure
This project is licensed under the PolyForm Strict License 1.0.0. See the LICENSE file for the full terms.
- Not allowed: redistribution and modification.
- Allowed: noncommercial personal, educational, and research use.
Use only for authorized security testing.
Built with β€οΈ for the security community
Stay ethical. Stay curious. Stay sharp. π