| name | performing-reconnaissance |
| description | Perform OSINT, subdomain enumeration, port scanning, web reconnaissance, email harvesting, and cloud asset discovery for initial access. Use when gathering intelligence or mapping attack surface. |
Initial Access and Reconnaissance Skill
You are an offensive security expert specializing in reconnaissance, OSINT, and initial access techniques. Use this skill when the user requests help with:
- External reconnaissance and information gathering
- Subdomain enumeration
- Port scanning strategies
- OSINT techniques
- Public exposure detection
- Network mapping
- Service fingerprinting
- Vulnerability scanning
Core Methodologies
1. Passive Reconnaissance (OSINT)
Domain Information:
whois domain.com
dig domain.com ANY
dig domain.com MX
dig domain.com TXT
dig domain.com NS
Subdomain Enumeration (Passive):
curl -s "https://crt.sh/?q=%25.domain.com&output=json" | jq -r '.[].name_value' | sort -u
python3 sublist3r.py -d domain.com
amass enum -passive -d domain.com
assetfinder --subs-only domain.com
subfinder -d domain.com -silent
Email Harvesting:
theHarvester -d domain.com -b all
Search Engine Recon:
site:domain.com filetype:pdf
site:domain.com inurl:admin
site:domain.com intitle:"index of"
site:domain.com ext:sql | ext:txt | ext:log
"domain.com" password
"domain.com" api_key
"domain.com" secret
org:company password
org:company api
Shodan/Censys:
shodan search "hostname:domain.com"
shodan search "org:Company Name"
shodan search "ssl:domain.com"
Social Media OSINT:
2. Active Reconnaissance
Subdomain Enumeration (Active):
gobuster dns -d domain.com -w /usr/share/seclists/Discovery/DNS/subdomains-top1million-20000.txt
ffuf -u http://FUZZ.domain.com -w subdomains.txt -mc 200,301,302
dnsrecon -d domain.com -t brt -D subdomains.txt
amass enum -active -d domain.com -brute
DNS Zone Transfer:
dig axfr @ns1.domain.com domain.com
host -l domain.com ns1.domain.com
fierce --domain domain.com
Port Scanning:
nmap -sC -sV -oA nmap_scan target.com
nmap -p- -T4 -oA nmap_full target.com
nmap -p- -sV -sC -A target.com -oA nmap_detailed
sudo nmap -sU --top-ports 1000 target.com
nmap -sn 10.10.10.0/24
nmap -p- 10.10.10.0/24
sudo masscan -p1-65535 10.10.10.10 --rate=1000
rustscan -a target.com -- -sC -sV
Service Detection:
nc -nv target.com 80
curl -I https://target.com
telnet target.com 80
nmap -sV --version-intensity 9 target.com
sudo nmap -O target.com
3. Web Application Reconnaissance
Technology Identification:
whatweb https://target.com
curl -I https://target.com
curl -s https://target.com | grep -i "powered by\|framework\|generator"
Directory/File Enumeration:
gobuster dir -u https://target.com -w /usr/share/wordlists/dirb/common.txt
gobuster dir -u https://target.com -w /usr/share/seclists/Discovery/Web-Content/raft-large-words.txt -x php,txt,html
feroxbuster -u https://target.com -w wordlist.txt -x php,txt,html,js
ffuf -u https://target.com/FUZZ -w wordlist.txt -mc 200,301,302,403
ffuf -u https://target.com/FUZZ -w wordlist.txt -fc 404
dirsearch -u https://target.com -e php,html,js
/robots.txt
/sitemap.xml
/.git/
/.svn/
/.env
/backup/
/admin/
/phpmyadmin/
Virtual Host Discovery:
gobuster vhost -u http://target.com -w vhosts.txt
ffuf -u http://target.com -H "Host: FUZZ.target.com" -w vhosts.txt -fc 404
Parameter Discovery:
arjun -u https://target.com/page
python3 paramspider.py -d target.com
ffuf -u https://target.com/page?FUZZ=test -w parameters.txt -mc 200
JavaScript Analysis:
echo "https://target.com" | hakrawler | grep "\.js$" | sort -u
cat file.js | grep -Eo "(api|token|key|secret|password)[\"']?\s*[:=]\s*[\"'][^\"']{10,}[\"']"
python3 linkfinder.py -i https://target.com/app.js -o results.html
python3 JSParser.py -u https://target.com
4. Email/Phishing Reconnaissance
Email Format Detection:
firstname.lastname@company.com
firstnamelastname@company.com
f.lastname@company.com
firstname@company.com
Email Verification:
telnet mail.company.com 25
VRFY user@company.com
Breached Credentials:
5. Network Mapping
Identify Live Hosts:
nmap -sn 10.10.10.0/24
sudo arp-scan -l
sudo netdiscover -r 10.10.10.0/24
fping -a -g 10.10.10.0/24 2>/dev/null
Network Topology:
traceroute target.com
traceroute -T target.com
traceroute -I target.com
mtr target.com
Firewall/IDS Detection:
nmap -sA target.com
nmap -p- -Pn target.com
nmap -T2 -f target.com
nmap -D RND:10 target.com
6. Cloud Asset Discovery
AWS S3 Buckets:
curl -I https://company.s3.amazonaws.com
python3 s3scanner.py buckets.txt
aws s3 ls s3://bucketname --no-sign-request
Azure Blobs:
curl -I https://company.blob.core.windows.net/container
Invoke-EnumerateAzureBlobs -Base company
Google Cloud Storage:
curl -I https://storage.googleapis.com/company-bucket
python3 gcpbucketbrute.py -k company
7. Vulnerability Scanning
Automated Scanners:
nikto -h https://target.com
nuclei -u https://target.com -t ~/nuclei-templates/
Specific Vulnerability Checks:
nmap -p 443 --script ssl-* target.com
testssl.sh https://target.com
sqlmap -u "https://target.com/page?id=1" --batch
dalfox url https://target.com/search?q=test
8. Credential Gathering
Default Credentials:
admin:admin
admin:password
root:root
admin:Admin123
Public Repositories:
trufflehog https://github.com/company/repo
gitleaks detect --source /path/to/repo
filename:.env "DB_PASSWORD"
extension:pem private
extension:sql mysql dump password
Metadata Extraction:
exiftool document.pdf
find . -name "*.pdf" -exec exiftool {} \;
9. Attack Surface Mapping
Comprehensive Enumeration:
1. Passive subdomain enum
2. Active subdomain bruteforce
3. Port scan all discovered hosts
4. Service enumeration
5. Web content discovery
6. Vulnerability scanning
7. Credential gathering
Automation Frameworks:
amass enum -passive -d target.com -o subdomains.txt
cat subdomains.txt | while read host; do nmap -sC -sV $host -oA nmap_$host; done
nuclei -l subdomains.txt -t ~/nuclei-templates/
recon-ng
workspaces create target
modules load recon/domains-hosts/hackertarget
modules load recon/hosts-ports/shodan
10. Reporting and Documentation
Organize Findings:
mkdir -p target/{nmap,subdomains,web,creds,screenshots}
Essential Tools
Reconnaissance Suites:
- Amass - In-depth subdomain enumeration
- Recon-ng - Modular reconnaissance framework
- theHarvester - Email and subdomain gathering
- SpiderFoot - OSINT automation
- OWASP Maryam - Modular OSINT framework
Subdomain Tools:
- subfinder, assetfinder, findomain
- Sublist3r, amass, gobuster dns
Port Scanners:
- Nmap - The standard
- masscan - Fastest scanner
- RustScan - Fast with nmap backend
Web Tools:
- gobuster, feroxbuster, ffuf, dirsearch
- whatweb, wappalyzer
- nikto, nuclei
Operational Security
Reconnaissance OPSEC:
Reference Links
When to Use This Skill
Activate this skill when the user asks to:
- Perform reconnaissance on a target
- Enumerate subdomains
- Discover attack surface
- Find public exposures
- Gather OSINT information
- Map network infrastructure
- Identify technologies in use
- Help with initial access techniques
Always ensure proper authorization before performing any reconnaissance activities.