-
Notifications
You must be signed in to change notification settings - Fork 9
/
Build.sh
executable file
·44 lines (37 loc) · 1.25 KB
/
Build.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
#!/usr/bin/env bash
#Verify in TmuxRecon directory
if [[ "$(pwd | awk -F"/" '{print$NF}')" != "TmuxRecon" ]]; then
echo "You must be in the TmuxRecon directory to run this script (case sensitive)."
exit 1
fi
cat <<'END'
TmuxRecon is installing...
END
if [[ ! -d 'dirsearch' ]]; then git clone https://github.com/maurosoria/dirsearch.git; fi
chmod -R 755 dirsearch/
rm /usr/bin/TmuxRecon 2> /dev/null
ln -s "$PWD/TmuxRecon.py" "/usr/bin/TmuxRecon"
apt update
apt-get install gobuster seclists dconf-cli g++ pip libreoffice smtp-user-enum leafpad enum4linux smbmap -y
wait
python3 -m pip install pandasql psutil
if [ -f "/usr/share/wordlists/rockyou.txt.gz" ] || [ ! -f "/usr/share/wordlists/rockyou.txt" ]
then
gzip -d /usr/share/wordlists/rockyou.txt.gz
fi
wordlists=("/usr/share/wordlists/rockyou.txt" "/usr/share/seclists/Discovery/Web-Content/directory-list-2.3-medium.txt" "/usr/share/dirbuster/wordlists/directory-list-2.3-small.txt" "/usr/share/seclists/Usernames/Names/names.txt")
for wordlist in "${wordlists[@]}"
do
if [[ ! -f "$wordlist" ]]
then
echo "#"
echo "#"
echo "#"
echo "You are going to want to install $wordlist"
echo "#"
echo "#"
echo "#"
fi
done
chown 0 -R ./*
chmod +x -R *