enumeration-phase

enumeration-phase is a skill for Claude Code, Codex from s0ld13rr/pentestcode. It costs 32 tokens per session (759 once invoked), scanned A, original, MIT.

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

Written for no agent in particular: nothing here depends on one.

Good fit Use it to discover hosts, scan TCP and UDP ports, identify services and versions, collect service banners, find web directories, and locate virtual hosts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/s0ld13rr/pentestcode/enumeration
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.

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.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for enumeration-phase

README.md
[![agentmods](https://agentmods.dev/badge/skills/s0ld13rr/pentestcode/enumeration/github.svg)](https://agentmods.dev/skills/s0ld13rr/pentestcode/enumeration)
Your own site
<a href="https://agentmods.dev/skills/s0ld13rr/pentestcode/enumeration"><img src="https://agentmods.dev/badge/skills/s0ld13rr/pentestcode/enumeration/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for enumeration-phase

Your own site · 80×15
<a href="https://agentmods.dev/skills/s0ld13rr/pentestcode/enumeration"><img src="https://agentmods.dev/badge/skills/s0ld13rr/pentestcode/enumeration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 759 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00032 $0.00759
Opus 5.5 $0.00013 $0.00304
Sonnet 5.5 $0.00006 $0.00152
Haiku 4.5 $0.00003 $0.00076

Measured 11d ago against content hash 4961cacad506, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 11d 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.

- Mirror interesting dirs with `wget --mirror` or `katana` (crawl + JS link extraction) — JS files hold API routes and often tokens.
skills/phases/enumeration/SKILL.md · 47 lines

How it starts

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

Scanning & Enumeration

Goal: every host in scope fully mapped — ports, versions, banners, hidden surfaces. Feed results into engagement state (state_update), not just terminal scrollback.

Port scan — tunable speed vs coverage

# Fast baseline, all ports, no discovery (live hosts known)
masscan -p1-65535 --rate 1000 -oJ masscan.json TARGET
# Full service detection on discovered ports
nmap -sS -sV -sC -p- -oA nmap/full TARGET          # slow but thorough
nmap -sS -sV -p <ports> --open -oA nmap/svc TARGET  # after masscan
  • Never run default-rate -p- against fragile/OT targets — negotiate rate in RoE.
  • -Pn when ICMP is filtered; combine -sn on the whole CIDR first to find live hosts cheaply.
  • UDP top-100 minimum: nmap -sU --top-ports 100 -sV -O — SNMP/DNS/mDNS/NTP/LDAP often missed.

Service enrichment

  • NSE: --script vuln,default for triage; dangerous scripts (brute, dos, exploit) ONLY with explicit authorization.
  • SMB: nxc smb HOST (shares, signing, OS, null session) → often instant finding (signing disabled = relay).
  • SNMP: snmpwalk -v2c -c public HOST .1.3.6.1.2.1 → network layout, VLANs, VPN peers.
  • TLS: testssl.sh HOST — old TLS, weak ciphers, expired/expiring certs, heartbleed.

Web surface discovery

# Content + vhosts + params
ffuf -u https://t/FUZZ -w raft-medium-directories -mc 200,204,301,302,401,403
ffuf -u https://t/ -H "Host: FUZZ.t" -w subdomains.txt      # vhost fuzzing
arjun -u https://t/page                                        # hidden params
  • Status-code triage: 401/403 → bypass tests (X-Original-URL, method override); 301 to login = app surface.
  • Mirror interesting dirs with wget --mirror or katana (crawl + JS link extraction) — JS files hold API routes and often tokens.
  • API discovery: /swagger, /openapi.json, /graphql, /.well-known/, /api/v{1..10}/.

Tech stack

whatweb -v URL / httpx -td → CMS-specific scans (wpscan), framework CVE lookup, then version-match against Nuclei templates.

Read the full file on GitHub · 47 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. 11d ago Changed · -47 lines · +6 tokens per session 4961cacad506
  2. 2mo 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 (921 stars, last pushed 12d ago), licensed MIT. It adds 32 tokens to every session and 759 once invoked, about $0.0001 per session on Opus 5.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.

Related

Other skills, from other repositories

lictor-security-check

Pre-release security audit for ANY project — AI-built or hand-written, web or mobile. Scans the codebase for the full range of real-world risks that get apps breached: leaked API & AI-provider keys, exposed configs/secrets, broken auth & access control (IDOR), injection (SQL/XSS/command), SSRF, open databases & cloud…

Raffa-jarrl/Lictor-AI · 135 tokens

lictor-rotate

Walks the user through rotating a leaked API key — step by step, provider-specific. Knows the exact URL to visit, the exact button to click, and how to verify the rotation worked. Supports Stripe, OpenAI, Anthropic, Google Cloud / AI Studio, GitHub, AWS, Slack, Supabase, Firebase, Postmark, and generic OAuth providers.

Raffa-jarrl/Lictor-AI · 80 tokens

lictor-explain

Takes any security finding, error message, or jargon-heavy security advice and explains it in plain English. Use this when someone is confused by what /lictor-security-check found, or when they got a security warning from another tool and don't understand it.

Raffa-jarrl/Lictor-AI · 56 tokens

openai-patterns

Production OpenAI API patterns — model selection, prompt engineering, function calling, streaming, error handling, cost control, and structured outputs.

chandrudp29/skillhub · 31 tokens

lictor-fix-it

Applies the fixes recommended by /lictor-security-check, with the user's explicit permission for each change. Walks through findings one at a time, shows the proposed change, gets approval, applies, runs tests if available, and moves on. Some fixes (rotating leaked credentials) require the user to act outside Claude …

Raffa-jarrl/Lictor-AI · 75 tokens

html-artifacts

Author the HTML for a plan artifact, dashboard iframe, or Slack attachment — structure, design plan, available runtime, theming, and craft. Read this before writing HTML for publishartifact, outputiframe, or slackattachhtml.

langchain-ai/open-swe · 52 tokens