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
sudo apt-get -y upgrade
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

#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://lanmaste...@bitbucket.org/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




On Thursday, February 22, 2018 at 7:24:43 PM UTC+8, Alvaro Miranda Aguilera 
wrote:
>
> because is in the wrong place.
>
>
> not a vagrant issue, but easy to solve
>
>
> if you run 
>
> vagrant ssh
> *sudo apt-get -y update*
>
> You will see the error
>
> fix:
> *sudo apt-get update*
>
>
> don't think -y is needed
>
> Thanks
> Alvaro
>
> On Wed, Feb 21, 2018 at 3:04 PM, hd hsd <maradri...@gmail.com 
> <javascript:>> wrote:
>
>> I have this on my vagrantfile.I have configured it to install software  I 
>> needed. 
>>
>>    config.vm.provision "shell", inline: <<-SHELL
>>    cd /vagrant
>>    chmod +x install.sh
>>    sudo ./install.sh
>>
>>
>>    SHELL
>>
>> *install.sh*
>>
>> *sudo apt-get -y update*
>>
>> why I can't use -y option. I always got this error
>> Command line option 'y' [from -y] is not known.
>> ==> default: ./install.sh: 12: ./install.sh:
>> : not found:
>>
>>
>> -- 
>> This mailing list is governed under the HashiCorp Community Guidelines - 
>> https://www.hashicorp.com/community-guidelines.html. Behavior in 
>> violation of those guidelines may result in your removal from this mailing 
>> list.
>>  
>> GitHub Issues: https://github.com/mitchellh/vagrant/issues
>> IRC: #vagrant on Freenode
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Vagrant" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to vagrant-up+...@googlegroups.com <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/vagrant-up/1febba10-5004-49ff-914c-292776302304%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/vagrant-up/1febba10-5004-49ff-914c-292776302304%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Alvaro
>
>

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vagrant-up+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/75902779-e7fb-4544-97f4-e1ab2162d028%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to