-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
92 lines (66 loc) · 2.32 KB
/
Copy pathinstall.sh
File metadata and controls
92 lines (66 loc) · 2.32 KB
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
#!/bin/bash
mkdir -p ~/tools
mkdir -p ~/wordlists
echo "Installing latest Go"
go_last_version=$(curl -s https://go.dev/VERSION?m=text | head -n 1)
wget https://go.dev/dl/${go_last_version}.linux-amd64.tar.gz
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf ${go_last_version}.linux-amd64.tar.gz
rm ${go_last_version}.linux-amd64.tar.gz
# Add Go to PATH permanently if not already
if ! grep -q "/usr/local/go/bin" ~/.bashrc; then
echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc
export PATH=$PATH:/usr/local/go/bin
fi
echo "Go ${go_last_version} installed successfully!"
echo "Installing tools..."
export CGO_ENABLED=0
# Amass
go install -v github.com/owasp-amass/amass/v5/cmd/amass@main
# Sublist3r
if [ ! -d ~/tools/Sublist3r ]; then
git clone https://github.com/aboul3la/Sublist3r.git ~/tools/Sublist3r
pip3 install -r ~/tools/Sublist3r/requirements.txt --break-system-packages
fi
# Assetfinder
go install github.com/tomnomnom/assetfinder@latest
# Subfinder
go install github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest
# Gau
go install github.com/lc/gau/v2/cmd/gau@latest
# Shuffledns
go install github.com/projectdiscovery/shuffledns/cmd/shuffledns@latest
# Shortscan
go install github.com/bitquark/shortscan/cmd/shortscan@latest
# GoLinkFinder
go install github.com/0xsha/GoLinkFinder@latest
#Nulcei
go install github.com/projectdiscovery/nuclei/v3/cmd/nuclei@latest
#Http probe
go install github.com/tomnomnom/httprobe@latest
#Mass DNS
sudo apt install -y git make gcc libc-dev
git clone https://github.com/blechschmidt/massdns.git
mv massdns ~/tools/
cd ~/tools/massdns/
make
sudo make install
#resolvers for shuffledns
mv resolvers.txt ~/tools/
#Install Seclists
wget -c https://github.com/danielmiessler/SecLists/archive/master.zip -O SecList.zip && unzip SecList.zip && rm -f SecList.zip
mv SecLists* ~/wordlists/
#Add GO to the path
if ! grep -q 'export PATH=$PATH:/usr/local/go/bin:~/go/bin' ~/.bashrc; then
echo 'export PATH=$PATH:/usr/local/go/bin:~/go/bin' >> ~/.bashrc
fi
if ! grep -q 'export PATH=$PATH:/usr/local/go/bin:~/go/bin' ~/.zshrc; then
echo 'export PATH=$PATH:/usr/local/go/bin:~/go/bin' >> ~/.zshrc
fi
# Reload shell configs
if [ -n "$ZSH_VERSION" ]; then
source ~/.zshrc
else
source ~/.bashrc
fi
echo "✅ All tools installed in ~/go/bin (make sure it's in your PATH)"