-
Notifications
You must be signed in to change notification settings - Fork 0
/
senum.sh
46 lines (30 loc) · 1.96 KB
/
senum.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
#!/bin/env bash
#24/7
domain=$1 #domain_name_here
mkdir -p ~/projects/$domain/domains
resolver="~/aautoPilot/resolver.txt"
massdns="~/aautoPilot/massdns/bin/massdns"
domains="~/projects/$domain/domains"
echo "----------------------------------------------------------"
echo "################## ####################"
echo "################ Finding ##################"
echo "################ -SubDomain- ##################"
echo "################## ---- ---- ####################"
echo "----------------------------------------------------------"
subdomain_enum(){
sudo sublist3r -d $domain -t 50 -p 80,443 -n | awk '/ - / {print$1}' | tee ~/projects/$domain/domains/sublister.txt
~/aautoPilot/subfinder/cmd/subfinder/subfinder -d $domain -max-time 2 -nC -nW | tee ~/projects/$domain/domains/subfinder.txt
curl -s https://certspotter.com/api/v0/certs\?domain\=$domain | jq '.[].dns_names[]' | sed 's/\"//g' | sed 's/\*\.//g' | sort -u | grep $domain | tee ~/projects/$domain/domains/certspotter.txt
timeout 3m amass enum --passive -silent -d $domain | tee ~/projects/$domain/domains/amass.txt
cat ~/projects/$domain/domains/*.txt | sort | uniq | tee ~/projects/$domain/domains/all.txt
rm -r ~/projects/$domain/domains/sublister.txt
rm -r ~/projects/$domain/domains/subfinder.txt
rm -r ~/projects/$domain/domains/certspotter.txt
rm -r ~/projects/$domain/domains/amass.txt
~/aautoPilot/shuffledns/cmd/shuffledns/shuffledns -list ~/projects/kartpay.com/domains/all.txt -r ~/aautoPilot/resolver.txt -massdns ~/aautoPilot/massdns/bin/massdns | tee ~/projects/$domain/domains/domain.txt
~/aautoPilot/httpx/cmd/httpx/httpx -silent -websocket -l ~/projects/$domain/domains/domain.txt | tee ~/projects/$domain/domains/probed.txt
}
subdomain_enum $1
echo "----------------------------------------------------------"
echo "################## Done with subs ########################"
echo "----------------------------------------------------------"