Add go/pip install if missing

This commit is contained in:
d3vyce 2023-02-16 13:03:35 -05:00
parent 3de4bcab1f
commit 8a1387b9a0

View File

@ -96,8 +96,14 @@ software() {
sudo apt install nuclei -y >/dev/null 2>&1 sudo apt install nuclei -y >/dev/null 2>&1
if ! command -v go &> /dev/null; then if ! command -v go &> /dev/null; then
printf ${RED}"[x] Missing Go, skipping install of Fuff, Chisel and Nuclei...\n" printf ${GREEN}"[+] go\n"
else wget https://go.dev/dl/go1.20.1.linux-amd64.tar.gz >/dev/null 2>&1
sudo tar -C /usr/local -xzf go1.20.1.linux-amd64.tar.gz >/dev/null 2>&1
rm go1.20.1.linux-amd64.tar.gz
echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.profile
source ~/.profile
fi
if ! command -v ffuf &> /dev/null; then if ! command -v ffuf &> /dev/null; then
printf ${GREEN}"[+] ffuf\n" printf ${GREEN}"[+] ffuf\n"
go install github.com/ffuf/ffuf@latest >/dev/null 2>&1 go install github.com/ffuf/ffuf@latest >/dev/null 2>&1
@ -111,18 +117,18 @@ software() {
else else
printf ${ITALIC_LIGHT_CYAN}"[~] chisel is already installed, skipping...\n" printf ${ITALIC_LIGHT_CYAN}"[~] chisel is already installed, skipping...\n"
fi fi
fi
if ! command -v pip &> /dev/null; then if ! command -v pip &> /dev/null; then
printf ${RED}"[x] Missing Pip, skipping install of PwnCat...\n" printf ${GREEN}"[+] pip\n"
else sudo apt install python-pip -y
fi
if ! command -v pwncat-cs &> /dev/null; then if ! command -v pwncat-cs &> /dev/null; then
printf ${GREEN}"[+] pwncat-cs\n" printf ${GREEN}"[+] pwncat-cs\n"
sudo pip install pwncat-cs >/dev/null 2>&1 sudo pip install pwncat-cs >/dev/null 2>&1
else else
printf ${ITALIC_LIGHT_CYAN}"[~] pwncat-cs is already installed, skipping...\n" printf ${ITALIC_LIGHT_CYAN}"[~] pwncat-cs is already installed, skipping...\n"
fi fi
fi
} }
tools() { tools() {