-
Notifications
You must be signed in to change notification settings - Fork 241
/
setup_enumall.sh
executable file
·44 lines (35 loc) · 1.45 KB
/
setup_enumall.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
#!/bin/bash
#
# helps to setup domain, altdns, recon-ng tools
# Author: coreb1t
VIRTENV=enumall
HOWTOFILE=how_to_use.txt
echo "please enter the absolute path to the directory where the enumall.py tool should be installed"
echo " example: <path>/<to>/tools/enumall"
read path
if [ ! -d $path ];then
mkdir $path
echo "[+] directory $path created"
else
echo "[-] directory $path already exists"
echo "[-] exit"
exit
fi
cd $path
echo -e "[+] cloning git repos\n"
git clone https://[email protected]/LaNMaSteR53/recon-ng.git
git clone https://github.com/infosec-au/altdns.git
git clone https://github.com/jhaddix/domain.git
wget https://raw.githubusercontent.com/danielmiessler/SecLists/master/Discovery/DNS/sorted_knock_dnsrecon_fierce_recon-ng.txt
cd domain
pathSed=$(echo $path | sed s/'\/'/'\\\/'/g)
sed -i "s/^reconPath.*/reconPath = \"$pathSed\/recon-ng\/\"/g" enumall.py
sed -i "s/^altDnsPath.*/altDnsPath = \"$pathSed\/altdns\/\"/g" enumall.py
chmod 755 enumall.py
# write how-to file
echo -e "\nIf you are using python virtualenv, excute workon $VIRTENV before running the script\n" > $HOWTOFILE
echo "./enumall.py <domain> -a -p ../altdns/words.txt -w ../sorted_knock_dnsrecon_fierce_recon-ng.txt" >> $HOWTOFILE
# install virtualenv
echo -e "\n[+] configure the virtual env"
echo "[+] execute the following command"
echo " cd $path; mkvirtualenv $VIRTENV; pip install -r recon-ng/REQUIREMENTS; pip install -r altdns/requirements.txt"