-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_tools.sh
118 lines (96 loc) · 3.47 KB
/
install_tools.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
106
107
108
109
110
111
112
113
114
115
116
117
118
#!/bin/bash
# chmod +x install.sh
# install.sh
# ----------------
# This script installs all the required tools for the reconnaissance process.
# Exit immediately if a command exits with a non-zero status.
set -e
echo "[*] Updating package lists..."
sudo apt-get update -y
echo "[*] Installing essential packages..."
sudo apt-get install -y git wget curl python3 python3-pip nmap snap jq \
chromium-browser # (For Gowitness screenshots, if needed)
# --------------------------------------------------
# Install Recon Tools
# --------------------------------------------------
echo "[*] Installing Sublist3r..."
if ! command -v sublist3r &> /dev/null; then
sudo git clone https://github.com/aboul3la/Sublist3r.git /opt/Sublist3r
sudo ln -sf /opt/Sublist3r/sublist3r.py /usr/local/bin/sublist3r
# Requirements
sudo pip3 install -r /opt/Sublist3r/requirements.txt
fi
echo "[*] Installing Assetfinder..."
if ! command -v assetfinder &> /dev/null; then
go install github.com/tomnomnom/assetfinder@latest
sudo cp ~/go/bin/assetfinder /usr/local/bin/
fi
echo "[*] Installing Amass..."
if ! command -v amass &> /dev/null; then
sudo snap install amass
fi
echo "[*] Installing Subfinder..."
if ! command -v subfinder &> /dev/null; then
go install github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest
sudo cp ~/go/bin/subfinder /usr/local/bin/
fi
echo "[*] Installing httprobe..."
if ! command -v httprobe &> /dev/null; then
go install github.com/tomnomnom/httprobe@latest
sudo cp ~/go/bin/httprobe /usr/local/bin/
fi
echo "[*] Installing Gowitness..."
if ! command -v gowitness &> /dev/null; then
go install github.com/sensepost/gowitness@latest
sudo cp ~/go/bin/gowitness /usr/local/bin/
fi
# Alternatively, you can install Aquatone if you prefer
# echo "[*] Installing Aquatone..."
# go install github.com/michenriksen/aquatone@latest
# sudo cp ~/go/bin/aquatone /usr/local/bin/
echo "[*] Installing dirsearch..."
if ! [ -d "/opt/dirsearch" ]; then
sudo git clone https://github.com/maurosoria/dirsearch.git /opt/dirsearch
sudo ln -sf /opt/dirsearch/dirsearch.py /usr/local/bin/dirsearch
fi
echo "[*] Installing ffuf..."
if ! command -v ffuf &> /dev/null; then
go install github.com/ffuf/ffuf@latest
sudo cp ~/go/bin/ffuf /usr/local/bin/
fi
echo "[*] Installing nikto..."
if ! command -v nikto &> /dev/null; then
sudo apt-get install -y nikto
fi
echo "[*] Installing nuclei..."
if ! command -v nuclei &> /dev/null; then
go install github.com/projectdiscovery/nuclei/v2/cmd/nuclei@latest
sudo cp ~/go/bin/nuclei /usr/local/bin/
fi
echo "[*] Installing getJS..."
if ! command -v getJS &> /dev/null; then
go install github.com/003random/getJS@latest
sudo cp ~/go/bin/getJS /usr/local/bin/
fi
echo "[*] Installing waybackurls..."
if ! command -v waybackurls &> /dev/null; then
go install github.com/tomnomnom/waybackurls@latest
sudo cp ~/go/bin/waybackurls /usr/local/bin/
fi
echo "[*] Installing gau..."
if ! command -v gau &> /dev/null; then
go install github.com/lc/gau@latest
sudo cp ~/go/bin/gau /usr/local/bin/
fi
echo "[*] Installing qsreplace..."
if ! command -v qsreplace &> /dev/null; then
go install github.com/tomnomnom/qsreplace@latest
sudo cp ~/go/bin/qsreplace /usr/local/bin/
fi
echo "[*] Installing subjack..."
if ! command -v subjack &> /dev/null; then
go install github.com/haccer/subjack@latest
sudo cp ~/go/bin/subjack /usr/local/bin/
fi
echo "[*] All tools installed successfully!"
exit 0