diff --git a/install.sh b/install.sh index f8bfaca..00ad1d4 100755 --- a/install.sh +++ b/install.sh @@ -70,48 +70,13 @@ 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 2> /dev/null -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 theharvester 2> /dev/null -apt-get install -y phantomjs 2> /dev/null -apt-get install -y chromium 2> /dev/null +for pkg in adb aha chromium curl cutycapt dnsrecon dos2unix golang host hydra jq jsbeautifier ldapscripts libssl-dev libxml2-utils nbtscan net-tools nfs-common nikto nmap nodejs p7zip-full phantomjs php7.4 php7.4-curl python python-pip python3-paramiko python3-pip rpcbind ruby rubygems sqlmap sslscan theharvester wafw00f whatweb whois xdg-utils xmlstarlet xsltproc; do + if [[ "$pkg" == "python3-pip" ]]; then + apt-get remove -y $pkg + elif ! hash $pkg 2>/dev/null; then + apt-get install -y $pkg 2>/dev/null + fi +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