From 3b2d54956eb8a866431ffe105865ac8833c2e95a Mon Sep 17 00:00:00 2001 From: Mad Gray Hatter Date: Tue, 18 Aug 2020 16:42:32 -0400 Subject: [PATCH 1/4] Update install.sh I condensed the apt install commands --- install.sh | 45 +++------------------------------------------ 1 file changed, 3 insertions(+), 42 deletions(-) diff --git a/install.sh b/install.sh index 2aebebd..9ca1174 100755 --- a/install.sh +++ b/install.sh @@ -66,48 +66,9 @@ fi echo -e "$OKBLUE[*]$RESET Installing package dependencies...$RESET" apt-get update -apt-get install -y python3-paramiko -apt-get install -y nfs-common -apt-get install -y nodejs -apt-get install -y wafw00f -apt-get install -y xdg-utils -apt-get install -y ruby -apt-get install -y rubygems -apt-get install -y python -apt-get install -y dos2unix -apt-get install -y aha -apt-get install -y libxml2-utils -apt-get install -y rpcbind -apt-get install -y cutycapt -apt-get install -y host -apt-get install -y whois -apt-get install -y dnsrecon -apt-get install -y curl -apt-get install -y nmap -apt-get install -y php7.4 -apt-get install -y php7.4-curl -apt-get install -y hydra -apt-get install -y sqlmap -apt-get install -y nbtscan -apt-get install -y nikto -apt-get install -y whatweb -apt-get install -y sslscan -apt-get install -y jq -apt-get install -y golang -apt-get install -y adb -apt-get install -y xsltproc -apt-get install -y ldapscripts -apt-get install -y libssl-dev 2> /dev/null -apt-get install -y python-pip -apt-get remove -y python3-pip -apt-get install -y python3-pip -apt-get install -y xmlstarlet -apt-get install -y net-tools -apt-get install -y p7zip-full -apt-get install -y jsbeautifier -apt-get install -y phantomjs 2> /dev/null -apt-get install -y openvas -apt-get install -y greenbone-security-assistant +for i in adb aha curl cutycapt dnsrecon dos2unix golang greenbone-security-assistant host hydra jq jsbeautifier ldapscripts libssl-dev libxml2-utils nbtscan net-tools nfs-common nikto nmap nodejs openvas p7zip-full phantomjs php7.4 php7.4-curl python python-pip python3-paramiko python3-pip rpcbind ruby rubygems sqlmap sslscan wafw00f whatweb whois xdg-utils xmlstarlet xsltproc; do + apt install -y $i +done echo -e "$OKBLUE[*]$RESET Installing Metasploit...$RESET" curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > /tmp/msfinstall From e0a36c05ebb24dd792bd03e0cf0a2fa480da66e3 Mon Sep 17 00:00:00 2001 From: xer0dayz <1N3@hushmail.com> Date: Tue, 18 Aug 2020 15:25:18 -0700 Subject: [PATCH 2/4] Update install.sh Just made a small change to forward errors to /dev/null since some packages might not be available on Ubuntu by default. --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 9ca1174..80b52a0 100755 --- a/install.sh +++ b/install.sh @@ -67,7 +67,7 @@ fi echo -e "$OKBLUE[*]$RESET Installing package dependencies...$RESET" apt-get update for i in adb aha curl cutycapt dnsrecon dos2unix golang greenbone-security-assistant host hydra jq jsbeautifier ldapscripts libssl-dev libxml2-utils nbtscan net-tools nfs-common nikto nmap nodejs openvas p7zip-full phantomjs php7.4 php7.4-curl python python-pip python3-paramiko python3-pip rpcbind ruby rubygems sqlmap sslscan wafw00f whatweb whois xdg-utils xmlstarlet xsltproc; do - apt install -y $i + apt install -y $i 2>/dev/null done echo -e "$OKBLUE[*]$RESET Installing Metasploit...$RESET" From ec4b6dd32fe923d6cb9f82540d04f89ed263fad0 Mon Sep 17 00:00:00 2001 From: Mad Gray Hatter Date: Wed, 19 Aug 2020 11:38:47 -0400 Subject: [PATCH 3/4] Update install.sh added a conditional to check to see if the app being installed is already present, if it isnt the install command will run if not, it will pass it --- install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 80b52a0..55fc078 100755 --- a/install.sh +++ b/install.sh @@ -67,7 +67,9 @@ fi echo -e "$OKBLUE[*]$RESET Installing package dependencies...$RESET" apt-get update for i in adb aha curl cutycapt dnsrecon dos2unix golang greenbone-security-assistant host hydra jq jsbeautifier ldapscripts libssl-dev libxml2-utils nbtscan net-tools nfs-common nikto nmap nodejs openvas p7zip-full phantomjs php7.4 php7.4-curl python python-pip python3-paramiko python3-pip rpcbind ruby rubygems sqlmap sslscan wafw00f whatweb whois xdg-utils xmlstarlet xsltproc; do - apt install -y $i 2>/dev/null + if [ ! -x `which $i` ]; then + apt install -y $i 2>/dev/null + fi done echo -e "$OKBLUE[*]$RESET Installing Metasploit...$RESET" From 47ddf9a59ea6f5990c77ab0443eaa06dcffaaaed Mon Sep 17 00:00:00 2001 From: xer0dayz <1N3@hushmail.com> Date: Wed, 19 Aug 2020 10:19:33 -0700 Subject: [PATCH 4/4] Update install.sh Fixed conditional statement --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 55fc078..2749717 100755 --- a/install.sh +++ b/install.sh @@ -67,7 +67,7 @@ fi echo -e "$OKBLUE[*]$RESET Installing package dependencies...$RESET" apt-get update for i in adb aha curl cutycapt dnsrecon dos2unix golang greenbone-security-assistant host hydra jq jsbeautifier ldapscripts libssl-dev libxml2-utils nbtscan net-tools nfs-common nikto nmap nodejs openvas p7zip-full phantomjs php7.4 php7.4-curl python python-pip python3-paramiko python3-pip rpcbind ruby rubygems sqlmap sslscan wafw00f whatweb whois xdg-utils xmlstarlet xsltproc; do - if [ ! -x `which $i` ]; then + if [ -z `which $i` ]; then apt install -y $i 2>/dev/null fi done