-
Notifications
You must be signed in to change notification settings - Fork 1
/
domains.sh
46 lines (45 loc) · 1.8 KB
/
domains.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
#!/usr/bin/env bash
opt1="Amass"
opt2="Sublist3r"
opt3="Photon"
opt4="TheHarvester"
opt5="Carbon14"
timestamp=$(date +%Y-%m-%d:%H:%M)
domainmenu=$(zenity --list --title "Domain Tool" --radiolist --column "" --column "" TRUE "$opt1" FALSE "$opt2" FALSE "$opt3" FALSE "$opt4" FALSE "$opt5" --height=400 --width=300)
case $domainmenu in
$opt1 )
domain=$(zenity --entry --title "Amass" --text "Enter target domain name")
mkdir ~/Documents/Amass/
amass intel -whois -ip -src -active -d $domain -o ~/Documents/Amass/$timestamp-$domain.1.txt
amass enum -src -passive -d $domain -o ~/Documents/Amass/$timestamp-$domain.2.txt -d $domain
nautilus ~/Documents/Amass/
exit;;
$opt2 )
domain=$(zenity --entry --title "Sublist3r" --text "Enter target domain name")
mkdir ~/Documents/Sublist3r/
cd ~/Downloads/Programs/Sublist3r
python3 sublist3r.py -d $domain -o ~/Documents/Sublist3r/sublist3r_$domain.txt
nautilus ~/Documents/Sublist3r/
exit;;
$opt3 ) n
domain=$(zenity --entry --title "Photon" --text "Enter target domain name")
mkdir ~/Documents/Photon/
cd ~/Downloads/Programs/Photon/
python3 photon.py -u $domain -l 3 -t 100 -o ~/Documents/Photon/$timestamp-$domain
nautilus ~/Documents/Photon/$timestamp-$domain
exit;;
$opt4 )
domain=$(zenity --entry --title "TheHarvester" --text "Enter target domain name")
mkdir ~/Documents/theHarvester/
cd ~/Downloads/Programs/theHarvester/
python3 theHarvester.py -d $domain -b baidu,bing,duckduckgo,yahoo,virustotal -f ~/Documents/theHarvester/$timestamp-$domain.html
firefox ~/Documents/theHarvester/$timestamp-$domain.html
exit;;
$opt5 )
domain=$(zenity --entry --title "Carbon14" --text "Domain name (WITHOUT 'HTTPS://')")
mkdir ~/Documents/Carbon14/
cd ~/Downloads/Programs/Carbon14/
python3 carbon14.py https://$domain > ~/Documents/Carbon14/$domain.txt
nautilus ~/Documents/Carbon14/
exit;;
esac