High-speed discovery with guardrails and verification
Repeatable workflow for large-scope internal scanning. Rate-limited MASSCAN discovers open ports, then targeted Nmap verifies and enriches results. Reduces false positives, avoids accidental network disruption, and keeps scope tight with exclude files.
Create a skill called "Safe Fast Scan Pipeline". Inputs I will provide: - Target CIDR(s) and an explicit out-of-scope exclude list - Allowed scan windows (time) and whether I may use raw-socket scanners - Ports of interest for the engagement Task: 1) Generate a masscan discovery command with conservative defaults (rate-limited + excludefile). 2) Generate a verification plan with Nmap (service detection + safe output formats). 3) Provide a minimal parsing step to produce: hosts.txt, ip_port.txt, and final nmap.xml. 4) Include troubleshooting for packet loss, false positives, and scope guard failures.
Fast scanners are easy to misuse:
This recipe standardizes the pipeline: discover → dedupe → verify → export.
`cat > exclude.txt << 'EOF'
10.0.0.0/8
192.168.0.0/16
EOF`
`sudo masscan
`sudo masscan
`jq -r '.[] | select(.ports) | "\(.ip):\(.ports[].port)"' masscan.json | sort -u > ip_port.txt`
`jq -r '.[] | select(.ports) | .ip' masscan.json | sort -u > hosts.txt`
`nmap -sV -Pn -n -p
`nmap -sV -Pn -n -iL hosts.txt --top-ports 1000 -T3 -oX nmap.xml`
`xsltproc nmap.xml -o nmap.html`
Fix raw-socket "Operation not permitted" without --privileged
Least-privilege setup for running Nmap, MASSCAN, or ZMap inside Docker/Podman/Kubernetes. Solves "requires root privileges" and "Operation not permitted" failures without reaching for --privileged. Includes fallbacks when raw sockets are unavailable.
Eliminate wildcard 200s and handle 429 rate limiting
Content discovery explodes with false positives when targets return soft-404 pages (200 for everything) or wildcard DNS responses. This recipe calibrates baselines, applies response filters (-fs/-fw/--exclude-length), and tunes request rates to avoid WAF throttling.
Reduce travel stress with checklists and realistic routines
Builds a travel plan that covers safety basics, sleep/meal routines, and packing checklists for car or air travel — so you're not improvising under pressure.
Catches wrong quantity or off-market limit prices
Traders frequently report costly order entry mistakes (wrong limit price, wrong size), especially while rushed. This recipe blocks orders that look like outliers relative to current price and usual size.