ranjithvettayan/method-red/port-scanning

Claude Code and agent skill by ranjithvettayan/method-red

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Discover open ports, running services, and their versions on a target

Install

npx vskill@latest install ranjithvettayan/method-red/port-scanning

SKILL.md

The same SKILL.md was published earlier as ranjithvettayan/method-red/port-scanning.

Port Scanning

When to Activate

  • Initial recon of new target, need to discover services before vuln testing
  • Verifying firewall rules, new IP discovered

Tools

run_tool nmap (primary), run_tool nc (quick checks/banner grab)

Methodology

1. Quick Initial Scan
bash
run_tool nmap -sV -sC -T4 TARGET -oA $DIR/scans/nmap_initial
2. Full TCP Scan
bash
run_tool nmap -sV -sC -T4 -p- TARGET -oN $DIR/scans/nmap_full_tcp.txt
# Speed optimization: discover ports first, then deep scan
run_tool nmap -sS -T4 -p- --min-rate 1000 TARGET -oG $DIR/scans/ports_only.txt
PORTS=$(grep -oP '\d+/open' $DIR/scans/ports_only.txt | cut -d/ -f1 | tr '\n' ',' | sed 's/,$//')
run_tool nmap -sV -sC -p "$PORTS" TARGET -oN $DIR/scans/nmap_targeted.txt
3. Service Detection
bash
run_tool nmap -sV --version-intensity 5 -p PORT1,PORT2 TARGET
run_tool nc -nv TARGET PORT <<< "" 2>&1 | head -5 # Banner grab
printf '\n' | run_tool nc -w 3 TARGET PORT
4. Script Scanning
bash
run_tool nmap --script=vuln -p PORT TARGET
run_tool nmap --script=http-enum -p 80,443 TARGET
run_tool nmap --script=smb-enum-shares,smb-enum-users -p 445 TARGET
run_tool nmap --script=ftp-anon -p 21 TARGET
run_tool nmap --script=ssh-auth-methods -p 22 TARGET
5. UDP Scan
bash
run_tool nmap -sU --top-ports 50 -T4 TARGET -oN $DIR/scans/nmap_udp.txt
run_tool nmap -sU -p 53,67,68,69,123,161,162,500,514,1900 TARGET
6. Firewall Evasion (when standard scans blocked)
bash
run_tool nmap -f -sV -p PORT TARGET # Fragment packets
run_tool nmap -D RND:5 -sV -p PORT TARGET # Decoy scan
run_tool nmap -sV -T2 -p PORT TARGET # Slow scan
run_tool nmap --source-port 53 -sV -p PORT TARGET # Source port trick
7. Output Parsing
bash
grep -oP '\d+/open/tcp//\S+' $DIR/scans/nmap_initial.gnmap
grep "open" $DIR/scans/nmap_targeted.txt | grep -v "filtered"

Common Port Reference

PortServiceNotes
21FTPAnonymous login
22SSHVersion, auth methods
25SMTPOpen relay, user enum
53DNSZone transfer
80/443HTTP/SWeb app testing
139/445SMBShares, null sessions
1433MSSQL3306 MySQL5432 PostgreSQL
3389RDP5900 VNC6379 Redis (often unauth)
8080HTTP alt27017 MongoDB (often unauth)

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Grok Build (Cursor)
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ranjithvettayan/method-red/port-scanning/badge)](https://verified-skill.com/skills/ranjithvettayan/method-red/port-scanning)

Something wrong with this skill or its page? Tell us.