원클릭으로
subdomain-enum
Subdomain enumeration using subfinder and amass to discover attack surface
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Subdomain enumeration using subfinder and amass to discover attack surface
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Interactive gap analysis against Korea's ISMS-P 102-control certification framework (management, protection, personal information)
Security log analysis and anomaly detection for access, auth, and syslog files
Analyze suspicious files through triage/static/dynamic/code phases to produce IOCs, YARA/Sigma rules, and MITRE ATT&CK mappings
File hash reputation lookup via VirusTotal API v3 for MD5/SHA1/SHA256 detection ratio, threat classification, and vendor results
OWASP Top 10 (2021) checklist-based inspection and compliance matrix generation
Multi-chain smart contract security for Solana, Algorand, Cairo, Cosmos, Substrate, and TON with pre-audit readiness checks
| name | subdomain-enum |
| description | Subdomain enumeration using subfinder and amass to discover attack surface |
| license | MIT |
| metadata | {"category":"recon","locale":"en","phase":"v1"} |
Enumerates subdomains of a target domain using subfinder and amass. Collects results from multiple sources (Certificate Transparency, DNS brute-force, passive databases, etc.), merges and deduplicates them, then validates live hosts using httpx.
go install -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest
go install -v github.com/owasp-amass/amass/v4/...@master
go install -v github.com/projectdiscovery/httpx/cmd/httpx@latest
SECSKILL_TARGET_DOMAIN: target domain (e.g. example.com)SECSKILL_OUTPUT_DIR: directory for saving results (default: ./output)| Variable | Required | Description |
|---|---|---|
SECSKILL_TARGET_DOMAIN | required | Root domain to enumerate |
SECSKILL_OUTPUT_DIR | optional | Path to save result files (default: ./output) |
SECSKILL_USE_AMASS | optional | Set to true to also run amass (default: false) |
export TARGET="${SECSKILL_TARGET_DOMAIN:?Set the SECSKILL_TARGET_DOMAIN environment variable}"
export OUTDIR="${SECSKILL_OUTPUT_DIR:-./output}"
mkdir -p "$OUTDIR"
echo "[*] Target domain: $TARGET"
echo "[*] Output directory: $OUTDIR"
echo "[*] Running subfinder..."
subfinder -d "$TARGET" \
-silent \
-o "$OUTDIR/subfinder_${TARGET}.txt"
echo "[+] subfinder complete: $(wc -l < "$OUTDIR/subfinder_${TARGET}.txt") results"
if [ "${SECSKILL_USE_AMASS:-false}" = "true" ]; then
echo "[*] Running amass (this may take a while)..."
amass enum -passive -d "$TARGET" \
-o "$OUTDIR/amass_${TARGET}.txt"
echo "[+] amass complete: $(wc -l < "$OUTDIR/amass_${TARGET}.txt") results"
else
echo "[*] Skipping amass (enable with SECSKILL_USE_AMASS=true)"
fi
echo "[*] Merging results..."
cat "$OUTDIR"/subfinder_*.txt "$OUTDIR"/amass_*.txt 2>/dev/null \
| sort -u \
> "$OUTDIR/all_subdomains_${TARGET}.txt"
TOTAL=$(wc -l < "$OUTDIR/all_subdomains_${TARGET}.txt")
echo "[+] Total subdomains after deduplication: $TOTAL"
echo "[*] Validating live hosts..."
httpx -l "$OUTDIR/all_subdomains_${TARGET}.txt" \
-silent \
-status-code \
-title \
-tech-detect \
-o "$OUTDIR/live_subdomains_${TARGET}.txt"
LIVE=$(wc -l < "$OUTDIR/live_subdomains_${TARGET}.txt")
echo "[+] Live hosts: $LIVE"
echo "[+] Results saved to: $OUTDIR/live_subdomains_${TARGET}.txt"
echo ""
echo "===== Subdomain Enumeration Summary ====="
echo "Target domain : $TARGET"
echo "Total found : $TOTAL"
echo "Live hosts : $LIVE"
echo "Output files : $OUTDIR/"
echo "========================================="
all_subdomains_${TARGET}.txt is created and contains at least one entrylive_subdomains_${TARGET}.txt is created| Symptom | Cause | Resolution |
|---|---|---|
subfinder: command not found | Not installed | Check Go PATH and reinstall |
| 0 results | Invalid domain or network blocked | Verify domain, test DNS connectivity |
| httpx timeout | Network latency | Adjust with -timeout flag |
| amass taking too long | Active enumeration mode | Use -passive flag or disable amass |
~/.config/subfinder/provider-config.yaml yields more results (Shodan, Censys, VirusTotal, etc.).-timeout 30) is recommended.port-scan and nuclei-scan skills.