-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
34 lines (24 loc) · 1.15 KB
/
run.sh
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
#!/bin/bash
url=$1
if [ ! -d "/root/recon/$url" ];then
mkdir /root/recon/$url
fi
if [ ! -d "/root/recon/$url/recon" ];then
mkdir /root/recon/$url/recon
fi
echo "[+]Finding the Subdomains with asset finder-->"
assetfinder $url >> /root/recon/$url/recon/assets.txt
cat /root/recon/$url/recon/assets.txt | grep $1 >> /root/recon/$url/recon/final.txt
rm /root/recon/$url/recon/assets.txt
echo "[+]Finding the Subdomains with Amass--->"
amass enum -d $url >> /root/recon/$url/recon/f.txt
sort -u /root/recon/$url/recon/f.txt >> /root/recon/$url/recon/final.txt
rm /root/recon/$url/recon/f.txt
echo "[+]Finding the Subdomain with subfinder--->"
subfinder -d $url -o /root/recon/$url/doamins.txt
sort -u /root/recon/$url/domains.txt >> /root/recon/$url/recon/final.txt
rm /root/recon/$url/domains.txt
echo "[+]Testing Live website using HTTROBE"
cat /root/recon/$url/recon/final.txt | sort -u | httprobe -s -p https:443 |sed 's/https\?:\/\///' | tr -d ':443' >> /root/recon/$url/recon/alive.txt
echo "[+]Testing statuns codes httpx"
cat /root/recon/$url/recon/alive.txt | httpx -status-code | grep 200 | cut -d " " -f1 >> /root/recon/$url/recon/status.txt