Ubuntu
installing tools on ubuntu
Basic Tools
locate
install:
sudo apt install plocatecheck if it works:
locate -hnode
https://github.com/nvm-sh/nvm?tab=readme-ov-file#installing-and-updating
WARNING: The command below will automatically run the install.sh file (check it first if you want).
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bashrefresh:
source ~/.bashrcsee available node versions:
nvm list-remoteinstall a version of node:
nvm install lts/jodAt the time of this writing
lts/jodwas fornode v22.14.0 (npm v10.9.2).
check node version:
node --versioncheck npm version:
npm --versionnmap
install:
sudo apt update && sudo apt install nmap -ycheck if it works:
nmap -hproxychains4
install:
sudo apt update && sudo apt install proxychains4 -ycheck if it works:
proxychains4 --helpadd tor support (install tor):
sudo apt update && sudo apt install tor -yenable tor:
sudo systemctl start torcheck if tor is active:
sudo systemctl status torupdate the proxychains4 config file:
sudo nano /etc/proxychains4.confenable
dynamic_chain(remove the comment#)disable
strict_chain(add a command '#' in front of it)enable
random_chain(remove the comment#)enable
proxy_dns(remove the comment#)
Go to the very last empty row in the file and add:
socks5 127.0.0.1 9050Check if it works (get your normal ip first):
ip=$(curl -s https://api.ipify.org); echo "Normal ip: $ip";Check if it works (get your proxychains4 ip):
ip=$(proxychains4 curl -s https://api.ipify.org); echo "proxychains4 ip: $ip";ip=$(proxychains4 curl -s https://ipleak.net/json/); echo "proxychains4 ip: $ip";check if it works with a custom list of proxies:
ip=$(proxychains4 -f list_proxychains4.conf curl -s https://ipleak.net/json/); echo "proxychains4 ip: $ip";Additional information at https://github.com/J0n-H4rr150n/hunting/blob/main/setup/proxies.md
Setup tor exit node to United States:
sudo nano /etc/tor/torrcAdd the following at the bottom of the file:
ExitNodes {us}
StrictNodes 1
GeoIPExcludeUnknown 1
AllowSingleHopCircuits 0restart the tor service:
sudo systemctl restart torcheck if tor is enabled:
sudo systemctl status torCheck if it works again (get your proxychains4 ip):
ip=$(proxychains4 curl -s https://api.ipify.org); echo "proxychains4 ip: $ip";Check the ip returned with another tool like https://www.iplocation.net/ip-lookup
Try to reboot if it doesn't seem to work.
golang
Download go for linux: https://go.dev/dl/
Example (will change over time):
wget https://go.dev/dl/go1.24.0.linux-amd64.tar.gzUnzip and put in /usr/local:
sudo tar -C /usr/local -xzf go1.24.0.linux-amd64.tar.gzadd to path:
echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrcsource the updated file:
source ~/.bashrccheck if go works:
go versionadd the golang tool install location to path:
echo 'export PATH=$PATH:/home/bug/go/bin' >> ~/.bashrcNote change
bugabove to whatever username you are using.If the above doesn't work create the directory or wait until after installing a golang tool.
whois
install
sudo apt update && sudo apt install whoischeck if it works:
whois --helpTomNomNom Tools
anew
https://github.com/tomnomnom/anew
install
go install -v github.com/tomnomnom/anew@latestcheck if it works:
anew -hwaybackurls
https://github.com/tomnomnom/waybackurls
install
go install github.com/tomnomnom/waybackurls@latestcheck if it works:
waybackurls -hassetfinder
https://github.com/tomnomnom/assetfinder
install
go install github.com/tomnomnom/assetfinder@latestcheck if it works:
assetfinder -hhttprobe
https://github.com/tomnomnom/httprobe
install
go install github.com/tomnomnom/httprobe@latestcheck if it works:
httprobe -hgron
https://github.com/tomnomnom/gron
install
go install github.com/tomnomnom/gron@latestcheck if it works:
gron -hProjectDiscovery Tools
httpx
https://github.com/projectdiscovery/httpx
install
go install -v github.com/projectdiscovery/httpx/cmd/httpx@latestcheck if it works:
httpx -hsubfinder
https://github.com/projectdiscovery/subfinder
install
go install -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latestcheck if it works:
subfinder -hnuclei
https://github.com/projectdiscovery/nuclei
install:
go install -v github.com/projectdiscovery/nuclei/v3/cmd/nuclei@latestcheck if it works:
nuclei -hto get the initial templates installed run:
nucleinaabu
https://github.com/projectdiscovery/naabu
prereq:
sudo apt update && sudo apt install libpcap-dev -yinstall:
go install -v github.com/projectdiscovery/naabu/v2/cmd/naabu@latest check if it works
naabu -hnotify
https://github.com/projectdiscovery/notify
install:
go install -v github.com/projectdiscovery/notify/cmd/notify@latestkatana
https://github.com/projectdiscovery/katana
prereq:
sudo apt update
sudo snap refresh
sudo apt install zip curl wget git
sudo snap install golang --classic
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
sudo apt update
sudo apt install google-chrome-stableinstall
go install github.com/projectdiscovery/katana/cmd/katana@latestcheck if it works:
katana -htroubleshooting
Might need a different version of go...
make all of these items are installed:
sudo apt-get install curl git mercurial make binutils bison gcc build-essentialgo version manager (gvm): https://github.com/moovweb/gvm
prereq:
sudo apt update && sudo apt install binutils gcc make bison -yinstall:
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)katana mentioned needing go1.18+ (but go1.24.0 might have breaking changes):
gvm install go1.22.12use go1.22:
gvm use go1.22.12check the go version:
go versiontry to install katana again...
go install github.com/projectdiscovery/katana/cmd/katana@latestcheck if it works:
katana -hBishopFox Tools
jsluice
https://github.com/BishopFox/jsluice
install
go install github.com/BishopFox/jsluice/cmd/jsluice@latestcheck if it works:
jsluice -hLast updated
Was this helpful?