enumeration-phase

An active enumeration checklist for finding live hosts, open network ports, running services, software versions, website paths, and virtual hosts. It uses common scanning and discovery commands in increasing depth.

In plain words
What is it for?
Use it to discover hosts, scan TCP and UDP ports, identify services and versions, collect service banners, find web directories, and locate virtual hosts.
Why use it?
It turns an unknown network or website into an inventory that can guide later security testing.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/s0ld13rr/pentestcode/enumeration
Any agent
npx skills add s0ld13rr/pentestcode --skill enumeration
Clone the repo
git clone --depth 1 https://github.com/s0ld13rr/pentestcode

Made for: Claude Code, Codex.

Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 778 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00026 $0.00778
Opus 5 $0.00013 $0.00389
Sonnet 5 $0.00005 $0.00156
Haiku 4.5 $0.00003 $0.00078

Measured 2d ago against content hash d2c9b91c8fd6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

enumeration-phase scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -sI http://<target>:<port>
skills/phases/enumeration/SKILL.md · 94 lines

How it starts

The opening of the file, as written. The whole thing — 94 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Active Enumeration Checklist

Escalate scanning incrementally — quick discovery first, deep scans after.

Host Discovery

nmap -sn <cidr> -oG discovery.gnmap

Port Scanning (tiered)

# Quick top ports
nmap -sS --top-ports 1000 --min-rate 3000 -oA quick <target>

# Full TCP
nmap -sS -p- --min-rate 5000 -oA full_tcp <target>

# UDP top 20
nmap -sU --top-ports 20 -oA udp <target>

Service & Version Detection

nmap -sV -sC -p <found_ports> -oA services <target>
# Aggressive if needed
nmap -A -p <found_ports> -oA aggressive <target>
nc -nv <ip> <port>
nmap -sV --script=banner -p <port> <target>
curl -sI http://<target>:<port>

Web Enumeration

# Directory brute-force
gobuster dir -u http://<target> -w /usr/share/wordlists/dirb/common.txt -x php,html,txt,bak -o dirs.txt
ffuf -u http://<target>/FUZZ -w /usr/share/seclists/Discovery/Web-Content/raft-medium-directories.txt -mc 200,301,302,403

# Virtual host discovery
ffuf -u http://<target> -H "Host: FUZZ.<domain>" -w /usr/share/seclists/Discovery/DNS/subdomains-top1million-5000.txt -fs <default_size>

# Technology fingerprinting
whatweb http://<target> -a 3
nikto -h http://<target>

SMB Enumeration (port 445)

enum4linux-ng -A <target>
smbclient -N -L //<target>
crackmapexec smb <target> --shares
nmap --script smb-enum-shares,smb-enum-users -p 445 <target>

LDAP Enumeration (port 389/636)

ldapsearch -x -H ldap://<target> -b "" -s base namingContexts
ldapsearch -x -H ldap://<target> -b "<base_dn>" "(objectclass=*)"

SNMP Enumeration (port 161)

snmpwalk -v2c -c public <target>
onesixtyone -c /usr/share/seclists/Discovery/SNMP/common-snmp-community-strings.txt <target>

NFS Enumeration (port 2049)

showmount -e <target>
nmap --script nfs-ls,nfs-showmount -p 2049 <target>

Phase Completion Criteria

Move to VULN_ASSESS when:

  • All open ports identified on all in-scope hosts
  • Services and versions detected
  • Web directories enumerated
  • Protocol-specific enumeration complete
  • All findings recorded in engagement state

Read the full file on GitHub · 94 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 94 lines · 26 tokens per session scan A d2c9b91c8fd6

Subscribe to this mod's changes

enumeration-phase is a skill published in the GitHub repository s0ld13rr/pentestcode (566 stars, last pushed 11d ago), licensed MIT. It adds 26 tokens to every session and 778 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.