Skip to content

Instantly share code, notes, and snippets.

@bcantoni
Created April 22, 2016 19:09
Show Gist options
  • Save bcantoni/372526a70f3606440f6c233f073e4767 to your computer and use it in GitHub Desktop.
Save bcantoni/372526a70f3606440f6c233f073e4767 to your computer and use it in GitHub Desktop.
Vagrant configuration for running WPScan (https://github.com/wpscanteam/wpscan)
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.provision "shell", privileged: true, inline: <<-SHELL1
apt-get update
apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev git -y
SHELL1
config.vm.provision "shell", privileged: false, inline: <<-SHELL2
curl -sSL --silent https://rvm.io/mpapis.asc | gpg --import -
curl -L --silent https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
rvm install 2.3.0
rvm use 2.3.0 --default
ruby -v
git clone https://github.com/wpscanteam/wpscan.git
gem install bundler
cd wpscan
gem install bundler
bundle install --without test
ruby wpscan.rb --update
SHELL2
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment