-
Notifications
You must be signed in to change notification settings - Fork 6
/
bug-bounty-essentials.sh
35 lines (29 loc) · 1.92 KB
/
bug-bounty-essentials.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
#!/bin/bash
# install all tomnomtools.
echo "[-] This script requires toptomnomnom.sh"
bash toptomnomnom.sh
echo "[-] Installing snapd"
sudo apt install snapd
sudo systemctl start snapd.service
# install gf-patterns with auto completion
sudo rm /usr/bin/gf; sudo mv /opt/gf /opt/gff; sudo mkdir /opt/gf/; sudo mv /opt/gff /opt/gf/gf;
cd /opt/gf/ || exit ; sudo wget https://raw.githubusercontent.com/tomnomnom/gf/master/gf-completion.bash ; sudo wget https://raw.githubusercontent.com/tomnomnom/gf/master/gf-completion.zsh ;
sudo chmod +x /opt/gf/gf ; echo "alias gf=\"/opt/gf/gf\"" >> ~/.bashrc ; echo "alias gf=\"/opt/gf/gf\"" >> ~/.zshrc
echo 'source /opt/gf/gf-completion.bash' >> ~/.bashrc
echo 'source /opt/gf/gf-completion.zsh' >> ~/.zshrc
echo "[i] All Requirements installed."
# amass => amass enum -passive -d owasp.org -src (amass [subcommands] [options] -d host)
#go install -v github.com/owasp/amass@latest ; sudo mv ~/go/bin amass /opt/. ; sudo chmod +x /opt/amass ; sudo ln -sf /opt/amass /usr/bin/amass
echo "[i] Installing amass"
sudo snap install amass
# sudo rm /opt/amass /usr/bin/amass
# Insall finddomain which get newly registered domains on target
echo "[i] Installing findomain"
sudo wget https://github.com/findomain/findomain/releases/latest/download/findomain-linux ; sudo mv findomain-linux /opt/findomain ; sudo chmod +x /opt/findomain ; echo "alias findomain=\"/opt/findomain\"" >> ~/.bashrc ; echo "alias findomain=\"/opt/findomain\"" >> ~/.zshrc
# sudo rm /opt/findomain /usr/bin/findomain
echo "[i] Installing go tools"
#other tools from projectdiscovery are subfinder, naabu, nuclei, dnsx
# Install httpsx which is updated and better than httprobe
echo "[i] Installing httpx"
go install -v github.com/projectdiscovery/httpx/cmd/httpx@latest ; sudo mv ~/go/bin/httpx /opt/. ; sudo chmod +x /opt/httpx ; echo "alias httpx=\"/opt/httpx\"" >> ~/.bashrc ; echo "alias httpx=\"/opt/httpx\"" >> ~/.zshrc
echo "[i] installed httpx"