From d2cf6807a6628820b1b0039aec6036900f7ed120 Mon Sep 17 00:00:00 2001 From: Pratyush Janghel Date: Sat, 10 Aug 2019 20:48:08 +0530 Subject: [PATCH 1/2] Fixed "No such file or directory" Error for bash_profile Tools folder has not been created before installing bash_profile. So, it throws 'no such directory' error on execution of cd ~/tools/. Thus, solved this problem with simple fix. --- install.sh | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/install.sh b/install.sh index fbbdd39..eb6bfeb 100644 --- a/install.sh +++ b/install.sh @@ -2,7 +2,6 @@ sudo apt-get -y update sudo apt-get -y upgrade - sudo apt-get install -y libcurl4-openssl-dev sudo apt-get install -y libssl-dev sudo apt-get install -y jq @@ -18,6 +17,10 @@ sudo apt-get install -y git sudo apt-get install -y rename sudo apt-get install -y xargs +#create a tools folder in ~/ +mkdir ~/tools +cd ~/tools/ + echo "installing bash_profile aliases from recon_profile" git clone https://github.com/nahamsec/recon_profile.git cd recon_profile @@ -26,8 +29,6 @@ source ~/.bash_profile cd ~/tools/ echo "done" - - #install go if [[ -z "$GOPATH" ]];then echo "It looks like go is not installed, would you like to install it now" @@ -60,18 +61,11 @@ select choice in "${choices[@]}"; do done fi - #Don't forget to set up AWS credentials! echo "Don't forget to set up AWS credentials!" apt install -y awscli echo "Don't forget to set up AWS credentials!" - - -#create a tools folder in ~/ -mkdir ~/tools -cd ~/tools/ - #install aquatone echo "Installing Aquatone" go get github.com/michenriksen/aquatone @@ -96,13 +90,11 @@ pip install -r requirements.txt cd ~/tools/ echo "done" - echo "installing teh_s3_bucketeers" git clone https://github.com/tomdev/teh_s3_bucketeers.git cd ~/tools/ echo "done" - echo "installing wpscan" git clone https://github.com/wpscanteam/wpscan.git cd wpscan* @@ -115,7 +107,6 @@ git clone https://github.com/maurosoria/dirsearch.git cd ~/tools/ echo "done" - echo "installing lazys3" git clone https://github.com/nahamsec/lazys3.git cd ~/tools/ @@ -126,7 +117,6 @@ git clone https://github.com/jobertabma/virtual-host-discovery.git cd ~/tools/ echo "done" - echo "installing sqlmap" git clone --depth 1 https://github.com/sqlmapproject/sqlmap.git sqlmap-dev cd ~/tools/ @@ -181,8 +171,6 @@ cat dns-Jhaddix.txt | head -n -14 > clean-jhaddix-dns.txt cd ~/tools/ echo "done" - - echo -e "\n\n\n\n\n\n\n\n\n\n\nDone! All tools are set up in ~/tools" ls -la echo "One last time: don't forget to set up AWS credentials in ~/.aws/!" From 26880faf108c9766f8fd92a108b7e2af4218684b Mon Sep 17 00:00:00 2001 From: Pratyush Janghel Date: Sat, 10 Aug 2019 23:44:18 +0530 Subject: [PATCH 2/2] Sudo needed to install awscli --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index eb6bfeb..4ff14c2 100644 --- a/install.sh +++ b/install.sh @@ -63,7 +63,7 @@ fi #Don't forget to set up AWS credentials! echo "Don't forget to set up AWS credentials!" -apt install -y awscli +sudo apt-get install -y awscli echo "Don't forget to set up AWS credentials!" #install aquatone