Red Team Tools and Methodology
此技能应在用户要求“遵循红队方法论”、“进行漏洞悬赏狩猎”、“自动化侦察”、“寻找XSS漏洞”、“枚举子域名”,或需要顶尖漏洞赏金猎人的安全研究技巧与工具配置时使用。
name:Red Team Tools and Methodologydescription:This skill should be used when the user asks to "follow red team methodology", "perform bug bounty hunting", "automate reconnaissance", "hunt for XSS vulnerabilities", "enumerate subdomains", or needs security researcher techniques and tool configurations from top bug bounty hunters.metadata:author:zebbernversion:"1.1"
Red Team Tools and Methodology
Purpose
Implement proven methodologies and tool workflows from top security researchers for effective reconnaissance, vulnerability discovery, and bug bounty hunting. Automate common tasks while maintaining thorough coverage of attack surfaces.
Inputs/Prerequisites
Outputs/Deliverables
Core Workflow
1. Project Tracking and Acquisitions
Set up reconnaissance tracking:
# Create project structure
mkdir -p target/{recon,vulns,reports}
cd targetFind acquisitions using Crunchbase
Search manually for subsidiary companies
Get ASN for targets
amass intel -org "Target Company" -srcAlternative ASN lookup
curl -s "https://bgp.he.net/search?search=targetcompany&commit=Search"2. Subdomain Enumeration
Comprehensive subdomain discovery:
# Create wildcards file
echo "target.com" > wildcardsRun Amass passively
amass enum -passive -d target.com -src -o amass_passive.txtRun Amass actively
amass enum -active -d target.com -src -o amass_active.txtUse Subfinder
subfinder -d target.com -silent -o subfinder.txtAsset discovery
cat wildcards | assetfinder --subs-only | anew domains.txtAlternative subdomain tools
findomain -t target.com -oGenerate permutations with dnsgen
cat domains.txt | dnsgen - | httprobe > permuted.txtCombine all sources
cat amass_.txt subfinder.txt | sort -u > all_subs.txt3. Live Host Discovery
Identify responding hosts:
# Check which hosts are live with httprobe
cat domains.txt | httprobe -c 80 --prefer-https | anew hosts.txtUse httpx for more details
cat domains.txt | httpx -title -tech-detect -status-code -o live_hosts.txtAlternative with massdns
massdns -r resolvers.txt -t A -o S domains.txt > resolved.txt4. Technology Fingerprinting
Identify technologies for targeted attacks:
# Whatweb scanning
whatweb -i hosts.txt -a 3 -v > tech_stack.txtNuclei technology detection
nuclei -l hosts.txt -t technologies/ -o tech_nuclei.txtWappalyzer (if available)
Browser extension for manual review
5. Content Discovery
Find hidden endpoints and files:
# Directory bruteforce with ffuf
ffuf -ac -v -u https://target.com/FUZZ -w /usr/share/seclists/Discovery/Web-Content/raft-medium-directories.txtHistorical URLs from Wayback
waybackurls target.com | tee wayback.txtFind all URLs with gau
gau target.com | tee all_urls.txtParameter discovery
cat all_urls.txt | grep "=" | sort -u > params.txtGenerate custom wordlist from historical data
cat all_urls.txt | unfurl paths | sort -u > custom_wordlist.txt6. Application Analysis (Jason Haddix Method)
Heat Map Priority Areas:
Analysis Questions:
7. Automated XSS Hunting
# ParamSpider for parameter extraction
python3 paramspider.py --domain target.com -o params.txtFilter with Gxss
cat params.txt | Gxss -p testDalfox for XSS testing
cat params.txt | dalfox pipe --mining-dict params.txt -o xss_results.txtAlternative workflow
<div class="overflow-x-auto my-6"><table class="min-w-full divide-y divide-border border border-border"><thead><tr><th class="px-4 py-2 text-left text-sm font-semibold text-foreground bg-muted/50">waybackurls target.com</th><th class="px-4 py-2 text-left text-sm font-semibold text-foreground bg-muted/50">grep "="</th><th class="px-4 py-2 text-left text-sm font-semibold text-foreground bg-muted/50">qsreplace '"><script>alert(1)</script>'</th><th class="px-4 py-2 text-left text-sm font-semibold text-foreground bg-muted/50">while read url; do</th></tr></thead><tbody class="divide-y divide-border"></tbody></table></div>
done > potential_xss.txt8. Vulnerability Scanning
# Nuclei comprehensive scan
nuclei -l hosts.txt -t ~/nuclei-templates/ -o nuclei_results.txtCheck for common CVEs
nuclei -l hosts.txt -t cves/ -o cve_results.txtWeb vulnerabilities
nuclei -l hosts.txt -t vulnerabilities/ -o vuln_results.txt9. API Enumeration
Wordlists for API fuzzing:
# Enumerate API endpoints
ffuf -u https://target.com/api/FUZZ -w /usr/share/seclists/Discovery/Web-Content/api/api-endpoints.txtTest API versions
ffuf -u https://target.com/api/v1/FUZZ -w api_wordlist.txt
ffuf -u https://target.com/api/v2/FUZZ -w api_wordlist.txtCheck for hidden methods
for method in GET POST PUT DELETE PATCH; do
curl -X $method https://target.com/api/users -v
done10. Automated Recon Script
#!/bin/bash
domain=$1if [[ -z $domain ]]; then
echo "Usage: ./recon.sh <domain>"
exit 1
fi
mkdir -p "$domain"
Subdomain enumeration
echo "[] Enumerating subdomains..."
subfinder -d "$domain" -silent > "$domain/subs.txt"Live host discovery
echo "[] Finding live hosts..."
cat "$domain/subs.txt" | httpx -title -tech-detect -status-code > "$domain/live.txt"URL collection
echo "[] Collecting URLs..."
cat "$domain/live.txt" | waybackurls > "$domain/urls.txt"Nuclei scanning
echo "[*] Running Nuclei..."
nuclei -l "$domain/live.txt" -o "$domain/nuclei.txt"echo "[+] Recon complete!"
Quick Reference
Essential Tools
| Tool | Purpose |
|---|---|
| Amass | Subdomain enumeration |
| Subfinder | Fast subdomain discovery |
| httpx/httprobe | Live host detection |
| ffuf | Content discovery |
| Nuclei | Vulnerability scanning |
| Burp Suite | Manual testing |
| Dalfox | XSS automation |
| waybackurls | Historical URL mining |
Key API Endpoints to Check
/api/v1/users
/api/v1/admin
/api/v1/profile
/api/users/me
/api/config
/api/debug
/api/swagger
/api/graphqlXSS Filter Testing
<!-- Test encoding handling -->
<h1><img><table>
<script>
%3Cscript%3E
%253Cscript%253E
%26lt;script%26gt;Constraints
Examples
Example 1: Quick Subdomain Recon
subfinder -d target.com | httpx -title | tee results.txtExample 2: XSS Hunting Pipeline
waybackurls target.com | grep "=" | qsreplace "test" | httpx -silent | dalfox pipeExample 3: Comprehensive Scan
# Full recon chain
amass enum -d target.com | httpx | nuclei -t ~/nuclei-templates/Troubleshooting
| Issue | Solution |
|---|---|
| Rate limited | Use proxy rotation, reduce concurrency |
| Too many results | Focus on specific technology stacks |
| False positives | Manually verify findings before reporting |
| Missing subdomains | Combine multiple enumeration sources |
| API key errors | Verify keys in config files |
| Tools not found | Install Go tools with go install |