On Thursday 22 February 2018 at 15:34:06, hd hsd wrote: > here is my full content of install.sh. vagrant inline script(vagrant > provision command) should be the correct solution to installing multiple > tools like this situations. some of the command such as `sudo apt-get > install git` requires confirmation, and if I use vagrant -provision I > can't enter the `y` option in the terminal. > > sudo apt-get -y update
apt-get update does not require (and does not allow) a -y option > sudo apt-get -y upgrade apt-get -y upgrade is fine > sudo apt-get install -y git > sudo apt-get install -y python3-pip > sudo apt-get install -y python-pip > sudo apt-get install -y libcurl4-openssl-dev > sudo apt-get install -y libssl-dev > sudo apt-get install -y jq > sudo apt-get install -y ruby-full > sudo apt-get install -y libcurl4-openssl-dev libxml2 libxml2-dev > libxslt1-dev ruby-dev build-essential libgmp-dev zlib1g-dev > sudo apt-get install -y realpath Why write all those as separate commands? As you can see from the penultimate line, you can install many packages at once by listing the names separated by spaces, so why no do the whole of the above with one command: sudo apt-get install -y git python3-pip python-pip libcurl4-openssl-dev libssl-dev jq ruby-full libcurl4-openssl-dev libxml2 libxml2-dev libxslt1-dev ruby-dev build-essential libgmp-dev zlib1g-dev realpath Do you have any further questions regarding the rest of your script below? Antony. > #Don't forget to set up AWS credentials! > echo "Don't forget to set up AWS credentials!" > sudo apt install awscli > echo "Don't forget to set up AWS credentials!" > > sudo apt-get -y install build-essential libssl-dev libffi-dev python-dev > sudo apt-get -y install python-setuptools > > #create a tools folder in /vagrant/tools > mkdir /vagrant/tools > cd /vagrant/tools/ > > > echo "installing Sublist3r" > git clone https://github.com/aboul3la/Sublist3r.git > cd Sublist3r* > sudo pip install -r requirements.txt > cd /vagrant/tools/ > echo "done" > > echo "installing wpscan" > git clone https://github.com/wpscanteam/wpscan.git > cd ~ > curl -sSL https://rvm.io/mpapis.asc | gpg --import - > curl -sSL > https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer | > bash -s stable > source ~/.rvm/scripts/rvm > echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc > rvm install 2.4.2 > rvm use 2.4.2 --default > echo "gem: --no-ri --no-rdoc" > ~/.gemrc > cd /vagrant/tools > git clone https://github.com/wpscanteam/wpscan.git > cd wpscan > gem install bundler > bundle install --without test > cd /vagrant/tools/ > echo "done" > > echo "installing dirsearch" > git clone https://github.com/maurosoria/dirsearch.git > cd /vagrant/tools/ > echo "done" > > echo "installing lazys3" > git clone https://github.com/nahamsec/lazys3.git > cd /vagrant/tools/ > echo "done" > > echo "installing virtual host discovery" > git clone https://github.com/jobertabma/virtual-host-discovery.git > cd /vagrant/tools/ > echo "done" > > echo "installing sqlmap" > git clone --depth 1 https://github.com/sqlmapproject/sqlmap.git sqlmap-dev > cd /vagrant/tools/ > echo "done" > > echo "installing knock.py" > sudo apt-get install python-dnspython > git clone https://github.com/guelfoweb/knock.git > cd /vagrant/tools/ > echo "done" > > echo "installing gittyleaks" > sudo pip install gittyleaks > echo "done" > > echo "installing relative-url-extractor" > git clone https://github.com/jobertabma/relative-url-extractor.git > cd /vagrant/tools/ > echo "done" > > echo "installing wafwoof" > sudo pip install wafwoof > echo 'done' > > #echo "installing recon-ng" > #git clone https://[email protected]/LaNMaSteR53/recon-ng.git > #cd recon-ng > #sudo pip install -r REQUIREMENTS > echo "done" > > echo "installing recon.sh" > git clone https://github.com/jobertabma/recon.sh.git > cd /vagrant/tools/ > echo "done" > > cp /vagrant/bash_profile ~/.bash_profile > source ~/.bash_profile > > # init recon.sh for recon-data > mkdir /vagrant/recon-data > cd /vagrant/recon-data > git init > recon.sh init /vagrant/recon-data > > #installing httpscreenshoot > echo "installing httpscreenshoot" > sudo apt-get install swig swig2.0 libssl-dev python-dev python-pip > git clone https://github.com/breenmachine/httpscreenshot.git > cd httpscreenshot > sudo ./install-dependencies.sh > #installing bountymonitor > echo "installing bountymonitor" > git clone https://github.com/nashcontrol/bounty-monitor.git > pip install -r requirements.txt > echo "One last time: don't forget to set up AWS credentials in ~/.aws/!" > # install namp > sudo apt-get install nmap -- Police have found a cartoonist dead in his house. They say that details are currently sketchy. Please reply to the list; please *don't* CC me.
