mirror of
https://github.com/d3vyce/PenTools.git
synced 2025-04-22 11:03:16 +02:00
Simplify if statement
This commit is contained in:
parent
8ad487d77c
commit
f11ffe337f
15
pentools.sh
15
pentools.sh
@ -88,20 +88,17 @@ software() {
|
|||||||
printf ${GREEN}"[+] nuclei\n"
|
printf ${GREEN}"[+] nuclei\n"
|
||||||
sudo apt install nuclei -y >/dev/null 2>&1
|
sudo apt install nuclei -y >/dev/null 2>&1
|
||||||
|
|
||||||
if ! command -v go &> /dev/null
|
if ! command -v go &> /dev/null; then
|
||||||
then
|
|
||||||
printf ${RED}"[x] Missing Go, skipping install of Fuff, Chisel and Nuclei...\n"
|
printf ${RED}"[x] Missing Go, skipping install of Fuff, Chisel and Nuclei...\n"
|
||||||
else
|
else
|
||||||
if ! command -v ffuf &> /dev/null
|
if ! command -v ffuf &> /dev/null; then
|
||||||
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
|
||||||
else
|
else
|
||||||
printf ${ITALIC_LIGHT_CYAN}"[~] ffuf is already installed, skipping...\n"
|
printf ${ITALIC_LIGHT_CYAN}"[~] ffuf is already installed, skipping...\n"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! command -v chisel &> /dev/null
|
if ! command -v chisel &> /dev/null; then
|
||||||
then
|
|
||||||
printf ${GREEN}"[+] chisel\n"
|
printf ${GREEN}"[+] chisel\n"
|
||||||
go install github.com/jpillora/chisel@latest >/dev/null 2>&1
|
go install github.com/jpillora/chisel@latest >/dev/null 2>&1
|
||||||
else
|
else
|
||||||
@ -109,12 +106,10 @@ software() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! command -v pip &> /dev/null
|
if ! command -v pip &> /dev/null; then
|
||||||
then
|
|
||||||
printf ${RED}"[x] Missing Pip, skipping install of PwnCat...\n"
|
printf ${RED}"[x] Missing Pip, skipping install of PwnCat...\n"
|
||||||
else
|
else
|
||||||
if ! command -v pwncat-cs &> /dev/null
|
if ! command -v pwncat-cs &> /dev/null; then
|
||||||
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user