repo://underc0delabs/0ctopus · python license · MIT
  1. Home
  2. Apps
  3. 0ctopus

./0ctopus.py

Infosec swiss army knife0ctopus

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.

18CLI tools
307agents
43skills
30+domains
0ctopus — bash

cat about.txt

What is 0ctopus?

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/

Included tools

Each module handles one recon or analysis task. Use them on their own or chained from the menu.

Port scanning

Advanced scan with service and version detection on the target host (scan-ports).

Vulnerability check

Checks TLS, headers, sensitive files, WordPress and known CVEs on the target URL (vuln-check).

Subdomain enumeration

Discovers subdomains combining crt.sh, a wordlist and DNS (enum-subdomains).

Directory crawling

Crawls internal links with configurable depth and formatted output (dirb).

Header analysis

Audits a site's HTTP security headers and flags the missing ones (header-analyzer).

Historical URLs

Retrieves a domain's archived URLs from the Wayback Machine (wayback-urls).

DNS recon

Queries a domain's A, AAAA, MX, NS, TXT, CNAME and SOA records (dns-recon).

WHOIS

Looks up a domain's registration and ownership data (whois).

IP geolocation

Resolves the approximate location and network data of an IP address (geoip).

Admin finder

Locates common admin panels and paths on a site (find-admin).

Hash identification

Recognizes the likely type of a hash to guide the analysis (hash-identify).

Packet capture

Network sniffer that exports captured traffic to a .pcap file (sniff-packets).

ARP scan

Discovers local-network hosts via ARP; requires privileges (arp-scan).

WiFi scanning

Lists nearby wireless networks and their signal data (wifi-scan).

Handshake capture

Captures the WPA/WPA2 handshake of a target network for analysis (wifi-handshake).

Handshake cracking

Attempts to recover the key from a captured handshake, using hashcat (wifi-crack).

HTML report

Consolidates the output JSON into an HTML report with the site's look (report-build).

Results dashboard

Regenerates the dashboard with the index of every generated report (rebuild-index).

report-build output/

HTML reports and agents

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

Installation

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
installation
$ 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

Usage

With no arguments it opens the interactive menu. With a command it runs that function directly and saves the output to output/.

interactive menu
$ python 0ctopus.py
0ctopus · Underc0de Hacking Tool
[1] scan-ports     [2] vuln-check
[3] enum-subdomains [4] dirb
[5] sniff-packets  [6] geoip / whois ...
$ 
direct commands
$ 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
$ 

Responsible use

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.

← Back to all apps

WhatsApp groups