-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrequirements.sh
59 lines (47 loc) · 1.45 KB
/
requirements.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
#!/bin/bash
# Updating the system's package index
echo "Updating system..."
sudo apt-get update
# Installing Amass using Snap
if ! command -v snap &> /dev/null; then
echo "Snap is not installed. Installing Snap..."
sudo apt install snapd -y
echo "Snap installed successfully."
fi
echo "Installing Amass..."
sudo snap install amass
# Installing Nmap
echo "Installing Nmap..."
sudo apt-get install -y nmap
# Installing cURL
echo "Installing cURL..."
sudo apt-get install -y curl
# Ensuring dig is available by installing dnsutils
echo "Installing dig via dnsutils package..."
sudo apt-get install -y dnsutils
# Installing go-based tools
if ! command -v go &> /dev/null; then
echo "Go is not installed. Please install Go and re-run this script."
exit 1
fi
echo "Installing Assetfinder..."
go install github.com/tomnomnom/assetfinder@latest
echo "Installing Subfinder..."
go install -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest
echo "Installing Dnsgen..."
sudo apt-get install -y python3-pip
sudo pip3 install dnsgen
# Compiling and installing Massdns
echo "Installing Massdns..."
git clone https://github.com/blechschmidt/massdns.git
cd massdns
make
sudo cp bin/massdns /usr/local/bin/
cd ..
# Installing Httprobe
echo "Installing Httprobe..."
go install github.com/tomnomnom/httprobe@latest
# Installing Aquatone
echo "Installing Aquatone..."
go install github.com/michenriksen/aquatone@latest
echo "All dependencies have been installed."