-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrecon_example_com.sh
More file actions
52 lines (41 loc) · 1.59 KB
/
recon_example_com.sh
File metadata and controls
52 lines (41 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
# CYBER OPS V6.0 RECONNAISSANCE SCRIPT
# Target: example.com
# Generated: 2026-01-05T00:39:23.088Z
TARGET="example.com"
OUTPUT_DIR="recon_${TARGET}_$(date +%Y%m%d_%H%M%S)"
mkdir -p "${OUTPUT_DIR}" && cd "${OUTPUT_DIR}"
echo "[*] Starting reconnaissance on ${TARGET}"
echo "[*] Output directory: ${OUTPUT_DIR}"
# Subdomain enumeration
echo "[+] Phase 1: Subdomain Discovery"
subfinder -d "${TARGET}" -o subfinder.txt
amass enum -passive -d "${TARGET}" -o amass.txt
assetfinder --subs-only "${TARGET}" > assetfinder.txt
# Merge and deduplicate
cat *.txt | sort -u > all_subs.txt
echo "[+] Found $(wc -l < all_subs.txt) unique subdomains"
# DNS resolution
echo "[+] Phase 2: DNS Resolution"
massdns -r resolvers.txt -o S -w resolved.txt < all_subs.txt
# Live host detection
echo "[+] Phase 3: Live Host Detection"
cat resolved.txt | cut -d' ' -f1 | httpx -title -sc -tech-detect -o live_hosts.txt
# Port scanning
echo "[+] Phase 4: Port Scanning"
naabu -list live_hosts.txt -top-ports 100 -o ports.txt
# Web crawling
echo "[+] Phase 5: Web Crawling"
cat live_hosts.txt | katana -d 3 -o crawled_urls.txt
# Vulnerability scanning
echo "[+] Phase 6: Vulnerability Assessment"
nuclei -list live_hosts.txt -s critical,high -o nuclei_critical.txt
# Screenshots
echo "[+] Phase 7: Visual Reconnaissance"
cat live_hosts.txt | aquatone -out screenshots
echo "[*] Reconnaissance complete!"
echo "[*] Results saved in: ${OUTPUT_DIR}"
echo "[*] Summary:"
echo " - Subdomains: $(wc -l < all_subs.txt)"
echo " - Live hosts: $(wc -l < live_hosts.txt)"
echo " - Vulnerabilities: $(wc -l < nuclei_critical.txt)"