Port scanning
Advanced scan with service and version detection on the target host (scan-ports).
./0ctopus.py
A pentesting and network analysis kit built by Underc0de Labs. It bundles 18 command-line tools —port scanning, vulnerabilities, subdomains, DNS, WiFi and more— in a single Python CLI, with HTML reports and an optional layer of agents for assisted audits. Through an interactive menu or by commands.
cat about.txt
0ctopus is an infosec swiss army knife: a single Python tool that bundles 18 pentesting and analysis utilities. You can use it through its interactive menu or call each function as a direct command, and results are saved neatly in the output/, with the option to consolidate them into a HTML report browsable one.
It was born at Underc0de Labs, the community’s development space, with the same philosophy as always: free knowledge, open source and learning by doing. It is MIT-licensed software, so you can read it, modify it and contribute.
ls tools/
Each module handles one recon or analysis task. Use them on their own or chained from the menu.
Advanced scan with service and version detection on the target host (scan-ports).
Checks TLS, headers, sensitive files, WordPress and known CVEs on the target URL (vuln-check).
Discovers subdomains combining crt.sh, a wordlist and DNS (enum-subdomains).
Crawls internal links with configurable depth and formatted output (dirb).
Audits a site's HTTP security headers and flags the missing ones (header-analyzer).
Retrieves a domain's archived URLs from the Wayback Machine (wayback-urls).
Queries a domain's A, AAAA, MX, NS, TXT, CNAME and SOA records (dns-recon).
Looks up a domain's registration and ownership data (whois).
Resolves the approximate location and network data of an IP address (geoip).
Locates common admin panels and paths on a site (find-admin).
Recognizes the likely type of a hash to guide the analysis (hash-identify).
Network sniffer that exports captured traffic to a .pcap file (sniff-packets).
Discovers local-network hosts via ARP; requires privileges (arp-scan).
Lists nearby wireless networks and their signal data (wifi-scan).
Captures the WPA/WPA2 handshake of a target network for analysis (wifi-handshake).
Attempts to recover the key from a captured handshake, using hashcat (wifi-crack).
Consolidates the output JSON into an HTML report with the site's look (report-build).
Regenerates the dashboard with the index of every generated report (rebuild-index).
report-build output/
Each tool saves its output to output/ (as .json, .txt or .pcap). With report-build they are assembled into a consolidated HTML report with a dashboard, and rebuild-index regenerates that index. The reports use the same dark look as the site, so you can read or share them without the terminal.
On top of that, 0ctopus ships an optional layer of agents and skills for audits assisted with Claude Code: an orchestrator that confirms scope and delegates to recon, web, network and wireless specialists. It's an extra: the CLI works on its own, with no AI.
cd ~/ && git clone
You need Python 3.10 or higher. Clone the repository, create a virtual environment (optional but recommended) and install the dependencies. Before running any command, edit config.py and set the HOST and the URL_BASE of your target.
On Windows, for packet capture install Npcap in WinPcap-compatible mode and open the terminal as Administrator.
Open the repository$ git clone https://github.com/underc0delabs/0ctopus.git $ cd 0ctopus $ python3 -m venv env && source env/bin/activate $ pip install -r requirements.txt $
0ctopus.py --help
With no arguments it opens the interactive menu. With a command it runs that function directly and saves the output to output/.
$ python 0ctopus.py 0ctopus · Underc0de Hacking Tool [1] scan-ports [2] vuln-check [3] enum-subdomains [4] dirb [5] sniff-packets [6] geoip / whois ... $
$ python 0ctopus.py scan-ports $ python 0ctopus.py enum-subdomains --domain $ python 0ctopus.py dirb --max-depth 3 --verbose $ python 0ctopus.py arp-scan --network 192.168.1.0/24 $ python 0ctopus.py report-build output/engagement.json $
0ctopus is a tool for pentesting and learning on your own systems or with explicit authorization. Using it against third-party systems without permission is illegal. Underc0de promotes ethical hacking: responsibility for its use lies with whoever runs it.