This repository has been archived by the owner on Nov 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 67
/
Copy pathinstall.sh
105 lines (83 loc) · 2.78 KB
/
install.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#!/bin/bash
Tools="/root/Tools"
mkdir $Tools
#Update & Upgrade
apt-get update && apt-get upgrade -y
#Install requirements
apt-get install unzip libldns-dev git snapd dnsutils python3 python3-pip jq -y
pip3 install colored
#Ensures that the snapd service is running.
systemctl start snapd
## Install Golang
wget https://dl.google.com/go/go1.14.2.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.14.2.linux-amd64.tar.gz
rm go1.14.2.linux-amd64.tar.gz
echo -e "export PATH=$PATH:/usr/local/go/bin" >> ~/.profile
source ~/.profile
#Install Aquatone
wget https://github.com/michenriksen/aquatone/releases/download/v1.7.0/aquatone_linux_amd64_1.7.0.zip
unzip aquatone_linux_amd64_1.7.0.zip
rm aquatone_linux_amd64_1.7.0.zip README.md LICENSE.txt
mv aquatone /usr/local/bin/
#Install Chromium for Aquatone
snap install chromium
#Install Amass for recon
snap install amass
## Install Nuclei
wget https://github.com/projectdiscovery/nuclei/releases/download/v2.1.0/nuclei_2.1.0_linux_amd64.tar.gz
tar -xzvf nuclei_2.1.0_linux_amd64.tar.gz
rm LICENSE.md README.md
mv nuclei /usr/bin/nuclei
nuclei -update-templates -update-directory $Tools
## Install Httprobe
go get -u github.com/tomnomnom/httprobe
mv ~/go/bin/httprobe /usr/bin/
## Install Hakrawler
go get github.com/hakluke/hakrawler
mv ~/go/bin/hakrawler /usr/bin/
## Install Kxss
git clone https://github.com/tomnomnom/hacks
cd hacks/kxss
go build main.go
mv main /usr/bin/kxss
cd ../.. && rm -r hacks/
## Install ParamSpider
cd $Tools
git clone https://github.com/devanshbatham/ParamSpider
cd ParamSpider
pip3 install -r requirements.txt
## Install GF
go get -u github.com/tomnomnom/gf
echo 'source /root/go/src/github.com/tomnomnom/gf/gf-completion.bash' >> ~/.bashrc
source ~/.bashrc
cp -r /root/go/src/github.com/tomnomnom/gf/examples ~/.gf
mv ~/go/bin/gf /usr/bin/
cd ~/.gf
cp $Tools/ParamSpider/gf_profiles/* .
## Add more GF patterns
git clone https://github.com/1ndianl33t/Gf-Patterns
mv Gf-Patterns/*.json .
rm -r Gf-Patterns/
## Install GAU
GO111MODULE=on go get -u -v github.com/lc/gau
mv ~/go/bin/gau /usr/bin/
## Install SubDomainizer
cd $Tools
git clone https://github.com/nsonaniya2010/SubDomainizer.git
cd SubDomainizer
pip3 install -r requirements.txt
## Install Github-Subdomains.py
mkdir $Tools/Github-Subdomains/ && cd $Tools/Github-Subdomains
wget https://raw.githubusercontent.com/gwen001/github-search/master/github-subdomains.py
#Add /snap/bin to $PATH
echo -e "export PATH=\"$PATH:/snap/bin\"" >> ~/.profile
source ~/.profile
## END
SCRIPT_PATH="`dirname \"$0\"`" # relative
SCRIPT_PATH="`( cd \"$SCRIPT_PATH\" && pwd )`" # absolutized and normalized
if [ -z "$SCRIPT_PATH" ] ; then
# error; for some reason, the path is not accessible
# to the script (e.g. permissions re-evaled after suid)
exit 1 # fail
fi
rm $SCRIPT_PATH/install.sh