Last active
August 21, 2020 09:18
-
-
Save Avileox/8c65cc3b2600451acf6be64821351e1c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
GREEN='\033[0;32m' | |
YELLOW='\033[0;33m' | |
CYAN='\033[0;36m' | |
END='\033[0m' | |
echo -e """${CYAN} | |
_ ____ ____ ______ | |
| | /| / / // / / / / _ / | |
| |/ |/ / _ / /_/ / ___/ | |
|__/|__/_//_/\____/_/ | |
${GREEN}Web Hacking Utility Package${END} | |
${GREEN}--Avileox${END} | |
""" | |
usrcheck=`whoami` | |
if [[ $usrcheck == 'root' ]] ; then | |
sysusr=`who | awk -F: '{print $1}' | xargs` | |
printf "${GREEN}[+]${END} Creating Directory Model\\n" | |
dirm=`pwd` | |
mkdir $dirm/WHUP | |
printf "${GREEN}[+]${END} Do you want to Install System Packages\\n" | |
read -p "(y/n)? " answer | |
case ${answer:0:1} in | |
y|Y ) | |
# System Pkgs | |
apt install python-pip | |
apt install python-pip3 | |
apt install tree | |
CUR=$(curl -s https://golang.org/dl/ | grep linux-amd64 | grep 'download downloadBox' | cut -d'"' -f4 | sed 's/^....//') | |
echo Installing $CUR | |
# Download Go | |
wget https://dl.google.com/go/$CUR | |
# Get filename | |
FILE=$(echo $CUR | cut -d'/' -f5) | |
# Unpack file to /usr/local | |
sudo tar -C /usr/local -xzf $FILE | |
#Remove Go .tar.gz | |
rm $FILE | |
#Make GOPATH | |
mkdir ~/.golang | |
#Set env | |
echo '' >> ~/.bashrc | |
echo '# Golang' >> ~/.bashrc | |
echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc | |
echo 'export GOPATH=$HOME/.golang' >> ~/.bashrc | |
echo 'export PATH=$PATH:$GOPATH/bin' >> ~/.bashrc | |
source ~/.bashrc | |
;; | |
* ) | |
echo No | |
;; | |
esac | |
printf "${GREEN}[+]${END} Utility Installatation has been Completed\\n" | |
echo "------------------------------------------------------------------------------------------------" | |
# Wordlist git repos | |
printf "${GREEN}[+]${END} Installing Public Wordlists\\n" | |
mkdir $dirm/WHUP/Wordlists | |
git clone https://github.com/assetnote/commonspeak2-wordlists $dirm/WHUP/Wordlists/commonspeak2-wordlists | |
git clone https://github.com/fuzzdb-project/fuzzdb $dirm/WHUP/Wordlists/fuzzdb | |
git clone https://github.com/1N3/IntruderPayloads $dirm/WHUP/Wordlists/IntruderPayloads | |
git clone https://github.com/swisskyrepo/PayloadsAllTheThings $dirm/WHUP/Wordlists/PayloadsAllTheThings | |
git clone https://github.com/danielmiessler/SecLists $dirm/WHUP/Wordlists/SecLists | |
printf "${GREEN}[+]${END} Wordlists Installations Completed\\n" | |
echo "------------------------------------------------------------------------------------------------" | |
# Dir-recon Tools git repos | |
printf "${GREEN}[+]${END} Installing Directory and Content Recon Tools\\n" | |
mkdir $dirm/WHUP/Dir-recon | |
printf "${GREEN}[+]${END} Cloning Git Repos\\n" | |
git clone https://github.com/GerbenJavado/LinkFinder $dirm/WHUP/Dir-recon/LinkFinder | |
git clone https://github.com/maurosoria/dirsearch $dirm/WHUP/Dir-recon/dirsearch | |
git clone https://github.com/s0md3v/Arjun $dirm/WHUP/Dir-recon/Arjun | |
git clone https://github.com/s0md3v/Photon $dirm/WHUP/Dir-recon/Photon | |
git clone https://github.com/Nekmo/dirhunt $dirm/WHUP/Dir-recon/dirhunt | |
git clone https://github.com/maK-/parameth $dirm/WHUP/Dir-recon/parameth | |
git clone https://github.com/ghostlulzhacks/waybackMachine $dirm/WHUP/Dir-recon/waybackMachine | |
git clone https://github.com/Rhynorater/waybacktool $dirm/WHUP/Dir-recon/waybacktool | |
git clone https://github.com/DanMcInerney/fast-recon $dirm/WHUP/Dir-recon/fast-recon | |
git clone https://github.com/jgor/dork-cli $dirm/WHUP/Dir-recon/dork-cli | |
git clone https://github.com/utiso/dorkbot $dirm/WHUP/Dir-recon/dorkbot | |
git clone https://github.com/incogbyte/jsearch $dirm/WHUP/Dir-recon/jsearch | |
git clone https://github.com/irsdl/IIS-ShortName-Scanner $dirm/WHUP/Dir-recon/IIS-ShortName-Scanner | |
pip install waybackpack | |
printf "${GREEN}[+]${END} Installing Go Tools\\n" | |
go get -u -v github.com/hakluke/hakrawler | |
go get -u -v github.com/evilsocket/dirsearch | |
go get -u -v github.com/OJ/gobuster | |
go get -u -v github.com/tomnomnom/meg | |
go get -u -v github.com/michenriksen/aquatone | |
printf "${GREEN}[+]${END} Directory and Content Recon Tools Installation Completed\\n" | |
echo "------------------------------------------------------------------------------------------------" | |
# Dom-recon Tools git repos | |
printf "${GREEN}[+]${END} Installing Domain Recon Tool Data\\n" | |
mkdir $dirm/WHUP/Dom-recon | |
printf "${GREEN}[+]${END} Cloning Git Repos\\n" | |
git clone https://github.com/aboul3la/Sublist3r $dirm/WHUP/Dom-recon/Sublist3r | |
git clone https://github.com/TheRook/subbrute $dirm/WHUP/Dom-recon/subbrute | |
git clone https://github.com/robertdavidgraham/masscan $dirm/WHUP/Dom-recon/masscan | |
git clone https://github.com/InitRoot/fransRecon $dirm/WHUP/Dom-recon/fransRecon | |
git clone https://github.com/guelfoweb/knock $dirm/WHUP/Dom-recon/knock | |
printf "${GREEN}[+]${END} Installing Go Tools\\n" | |
go get -u -v github.com/tomnomnom/assetfinder | |
go get -u -v -v github.com/proje/WHUPiscovery/subfinder/cmd/subfinder | |
# pip installation | |
python -m pip install fierce | |
pip install py-altdns | |
printf "${GREEN}[+]${END} Domain Recon Tools Installation Completed\\n" | |
echo "------------------------------------------------------------------------------------------------" | |
# Scanner Installation Data | |
printf "${GREEN}[+]${END} Scanner Installation Started\\n" | |
mkdir $dirm/WHUP/Scanners | |
sudo apt install sqlmap | |
sudo pip3 install dirhunt | |
printf "${GREEN}[+]${END} Cloning Git Repos\\n" | |
git clone https://github.com/s0md3v/Corsy $dirm/WHUP/Scanners/Corsy | |
git clone https://github.com/ghostlulzhacks/waybackSqliScanner $dirm/WHUP/Scanners/waybackSqliScanner | |
git clone https://github.com/chenjj/CORScanner $dirm/WHUP/Scanners/CORScanner | |
#Wp scan installations and requirements | |
git clone https://github.com/wpscanteam/wpscan $dirm/WHUP/Scanners/wpscan | |
#bundle install && rake install | |
git clone https://github.com/s0md3v/XSStrike $dirm/WHUP/Scanners/XSStrike | |
git clone https://github.com/EdOverflow/megplus $dirm/WHUP/Scanners/megplus | |
git clone https://github.com/In3tinct/See-SURF $dirm/WHUP/Scanners/See-SURF | |
git clone https://github.com/jordanpotti/CloudScraper $dirm/WHUP/Scanners/CloudScraper | |
git clone https://github.com/ZephrFish/GoogD0rker $dirm/WHUP/Scanners/GoogD0rker | |
printf "${GREEN}[+]${END} Installing Go Tools\\n" | |
go get -u -v github.com/fiatjaf/howoldis | |
go get -u -v github.com/domainr/whois | |
go get -u -v go get github.com/ffuf/ffuf | |
go get -u -v github.com/rverton/webanalyze | |
go get -u -v github.com/sensepost/gowitness | |
go get -u -v github.com/tomnomnom/dnsgrep | |
go get -u -v github.com/tomnomnom/unfurl | |
go get -u -v github.com/tomnomnom/waybackurls | |
go get -u -v github.com/lc/gau | |
printf "${GREEN}[+]${END} Scanner Installations Completed\\n" | |
echo "------------------------------------------------------------------------------------------------" | |
printf "${GREEN}[+]${END} Directory Log\\n" | |
chown -R $sysusr:$sysusr WHUP | |
tree -d -L 2 | |
printf "${GREEN}[+]${END} WHUP Installations Completed\\n" | |
echo "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" | |
else | |
printf "${GREEN}[+]${END} WHUP Script needs sudo access \\nUse Sudo to run the Script Successfully\\n" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment