From d5a55f984632b73e3439df3e4c43413558dbaf6f Mon Sep 17 00:00:00 2001 From: F13END Date: Sat, 3 Nov 2018 12:55:12 +0300 Subject: [PATCH 1/2] setup fixing error. Setup Nokogiri, wafw00f install error fixed and tested ubuntu 16.04 LTS sudo check. --- setup.rb | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/setup.rb b/setup.rb index b1ab6f7..b568f3f 100644 --- a/setup.rb +++ b/setup.rb @@ -1,7 +1,16 @@ #/usr/bin/ruby -w - -puts "Gems Instalation " -system("gem install colorize && gem install nokogiri") +puts "If you can install this script should be root." +system("sudo -s") +if [ "$EUID" -ne 0 ] + then echo "Please run as root" + exit +fi +puts "Ruby Instalation" +system("sudo apt-get install ruby-full") +puts "Gems Instalation" +system("sudo apt-get install build-essential patch ruby-dev zlib1g-dev liblzma-dev") +system("gem install nokogiri") +system("gem install colorize") puts "Tools Instalation" -system("sudo apt-get install nmap && sudo apt-get install whatweb && sudo apt-get install host && sudo apt-get install -y dnsutils - && sudo apt-get install wafw00f") +system("sudo apt-get install nmap && sudo apt-get install whatweb && sudo apt-get install host") +system("sudo apt-get install -y dnsutils && sudo apt-get install wafw00f") From d58405b7165bde8a0350498fcd1a6b80977b9d4c Mon Sep 17 00:00:00 2001 From: F13END Date: Sat, 3 Nov 2018 12:57:19 +0300 Subject: [PATCH 2/2] fix command for bash to ruby --- setup.rb | 6 ------ 1 file changed, 6 deletions(-) diff --git a/setup.rb b/setup.rb index b568f3f..f212530 100644 --- a/setup.rb +++ b/setup.rb @@ -1,12 +1,6 @@ #/usr/bin/ruby -w puts "If you can install this script should be root." system("sudo -s") -if [ "$EUID" -ne 0 ] - then echo "Please run as root" - exit -fi -puts "Ruby Instalation" -system("sudo apt-get install ruby-full") puts "Gems Instalation" system("sudo apt-get install build-essential patch ruby-dev zlib1g-dev liblzma-dev") system("gem install nokogiri")