# 46. AI subdomain wordlist generator
python3 << 'EOF'
import openai
openai.api_key = "YOUR_API_KEY"
target = "target.com"
prompt = f"Generate 50 subdomain prefixes for {target} including environments, services, and regions. One per line."
response = openai.ChatCompletion.create(
model="gpt-3.5-turbo",
messages=[{"role": "user", "content": prompt}]
)
print(response.choices[0].message.content)
EOF
# 47. AI-powered Google Dorks generator
python3 << 'EOF'
import openai
openai.api_key = "YOUR_API_KEY"
target = "target.com"
prompt = f"Generate 10 Google dorks to find sensitive information about {target}. Include searches for exposed documents, GitHub repos, API docs."
response = openai.ChatCompletion.create(
model="gpt-3.5-turbo",
messages=[{"role": "user", "content": prompt}]
)
print(response.choices[0].message.content)
EOF
# 48. AI analysis of technology stack
python3 << 'EOF'
import openai
openai.api_key = "YOUR_API_KEY"
# Read technology detection results
with open('hosts_tech.txt', 'r') as f:
tech_data = f.read()
prompt = f"Analyze this technology stack and identify potential vulnerabilities and attack vectors:\n\n{tech_data}"
response = openai.ChatCompletion.create(
model="gpt-4",
messages=[{"role": "user", "content": prompt}]
)
print(response.choices[0].message.content)
EOF
# 49. AI report generation from findings
python3 << 'EOF'
import openai
openai.api_key = "YOUR_API_KEY"
# Read all findings
with open('live_hosts.txt', 'r') as f:
hosts = f.read()
with open('ports_top100.txt', 'r') as f:
ports = f.read()
prompt = f"Generate a reconnaissance summary report including:\n1. Total hosts discovered\n2. Interesting ports\n3. Technology stack analysis\n4. Recommended next steps\n\nHosts:\n{hosts}\n\nPorts:\n{ports}"
response = openai.ChatCompletion.create(
model="gpt-4",
messages=[{"role": "user", "content": prompt}]
)
print(response.choices[0].message.content)
EOF
# 50. Complete AI-powered automation pipeline
bash << 'EOF'
#!/bin/bash
# ai_recon_pipeline.sh
TARGET=$1
# Run recon
echo "[*] Starting recon for $TARGET"
subfinder -d $TARGET -all -silent | tee subs.txt
httpx -l subs.txt -tech-detect -silent | tee hosts.txt
# AI Analysis
python3 << 'PYEOF'
import openai
openai.api_key = "YOUR_API_KEY"
with open('hosts.txt', 'r') as f:
data = f.read()
prompt = f"Analyze this recon data and identify the top 5 targets to investigate:\n\n{data}"
response = openai.ChatCompletion.create(
model="gpt-4",
messages=[{"role": "user", "content": prompt}]
)
with open('ai_priorities.txt', 'w') as f:
f.write(response.choices[0].message.content)
print("[+] AI Analysis saved to ai_priorities.txt")
PYEOF
EOF
chmod +x ai_recon_pipeline.sh