enum-udp

enum-udp is a command for Claude Code from pashki975/thm-claude-kit. It costs 16 tokens per session (375 once invoked), scanned A, original, MIT.

A command guide for checking UDP network ports, starting with the most common ones and then examining services found there. UDP is a network protocol used by services such as DNS, SNMP, and NTP.

In plain words
What is it for?
Use it during authorized network testing to find UDP services, follow up on SNMP, TFTP, DNS, IKE, or NTP, and document the findings.
Why use it?
UDP scans can take a long time, so the guide makes the full scan conditional on earlier results and a clear reason to continue.

Command for Claude Code

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 commands/pashki975/thm-claude-kit/enum-udp
Clone the repo
git clone --depth 1 https://github.com/pashki975/thm-claude-kit

Made for: Claude Code.

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 enum-udp

README.md
[![agentmods](https://agentmods.dev/badge/commands/pashki975/thm-claude-kit/enum-udp.svg)](https://agentmods.dev/commands/pashki975/thm-claude-kit/enum-udp)
Your own site
<a href="https://agentmods.dev/commands/pashki975/thm-claude-kit/enum-udp"><img src="https://agentmods.dev/badge/commands/pashki975/thm-claude-kit/enum-udp.svg" alt="Measured on agentmods" height="20"></a>
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 375 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00016 $0.00375
Opus 5 $0.00008 $0.00187
Sonnet 5 $0.00003 $0.00075
Haiku 4.5 $0.00002 $0.00038

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

Security

Grade A, and why

enum-udp scanned grade A with 0 findings 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 4d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/enum-udp.md · 27 lines

What it actually says

Scan and enumerate UDP services on: $ARGUMENTS (target IP)

The gate (before any HEAVY step)

UDP scanning is slow — that's exactly why the gate matters. Reason first: did the top-ports scan already find the service we needed? A full 65535-port UDP sweep is HEAVY and usually low-yield — only justify it if the top-ports scan came up empty AND the room points at UDP. State the hypothesis before the full sweep; if weak, skip and say why.

CHEAP — always

  1. nmap -sU --top-ports 50 -T4 $ARGUMENTS -oN scans/nmap-udp.txt
  2. Follow up on whatever opened (these are cheap and targeted):
    • 161 SNMP → snmpwalk -v2c -c public $ARGUMENTS (users/processes leak creds)
    • 69 TFTP → tftp $ARGUMENTS ; 53 DNS → dig axfr @$ARGUMENTS <domain>
    • 500 IKE → ike-scan $ARGUMENTS ; 123 NTP → ntpq -p $ARGUMENTS

HEAVY — gate it

  1. Full UDP sweep nmap -sU -p- --min-rate 1000 $ARGUMENTS — ONLY if top-ports found nothing and there's a real reason to think a high UDP port matters. Otherwise skip and move on.

Summarize

Lead with what the top-ports scan + follow-ups found. Note if you skipped the full sweep and why. Record SNMP/TFTP leaks in notes.md.

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. 4d ago First seen · 27 lines · 16 tokens per session scan A 8d970d60f067

Subscribe to this mod's changes

enum-udp is a command published in the GitHub repository pashki975/thm-claude-kit (2 stars, last pushed 21d ago), licensed MIT. It adds 16 tokens to every session and 375 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.