| name | port-service-discovery |
| description | Nmap scan for MySQL, Redis, FTP, SSH, internal API services. |
| version | 1.1.0 |
| revision_date | "2026-07-25T00:00:00.000Z" |
| license | MIT |
| platforms | ["linux"] |
| compatibility | Requires curl, nmap, masscan |
| tags | ["recon","port-scan","mysql","FTP","SSH","internal-api"] |
| category | recon |
| related_skills | ["deep-invade","wp-mass-recon","cross-attack-chains","staging-subdomain-hunt","xmlrpc-exploitation"] |
Port & Service Discovery Skill
Use scoped Nmap discovery to identify services adjacent to web applications,
including databases, remote administration, mail, caches, and non-standard API
ports. An open port is an observation; service identity and unauthorized access
require separate validation.
When to Use
- Running
deep-invade Phase 6 on a high-value target.
- After surface recon shows no exploitable web vulnerabilities — pivot to infrastructure.
- When the target is a SaaS with backend APIs on non-standard ports.
- After discovering a staging subdomain — check for database/admin ports.
Prerequisites
nmap available in the execution environment.
- Target domain or IP address.
- For full port scan: patience (can take 10-60 minutes for all 65535 ports).
How to Run
nmap -F --open -T4 TARGET -oN nmap_fast.txt
nmap --top-ports 1000 --open -T4 TARGET -oN nmap_1000.txt
nmap -sV -p $(grep 'open' nmap_fast.txt | cut -d/ -f1 | tr '\n' ',') TARGET
nmap -f -F TARGET
Quick Reference
| Port | Service | Finding Severity |
|---|
| 3306 | MySQL | Critical (if open to internet) |
| 27017 | MongoDB | Critical (if no auth) |
| 6379 | Redis | Critical (if no auth) |
| 5432 | PostgreSQL | High |
| 1433 | MS SQL Server | High |
| 21 | FTP | High (anonymous login?) |
| 22 | SSH | Info (check for weak auth) |
| 8080/8081/8082/8084 | Internal APIs | High (backend services exposed) |
| 9200 | Elasticsearch | High (data exposure) |