Sha256: fd446b7bff1820c7fe6ede477b098998d8c12bb23ec7d5243273d0513a9d3b95

Contents?: true

Size: 837 Bytes

Versions: 812

Compression:

Stored size: 837 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

print 'Updating WordPress Web Vulnerability Scanner (wpscan)...'
Dir.chdir('/opt')
wpscan_root = '/opt/wpscan-dev/'
`sudo rm -rf #{wpscan_root}`
`sudo git clone https://github.com/wpscanteam/wpscan.git wpscan-dev`
wpscan_ruby_version = File.readlines("#{wpscan_root}/.ruby-version")[0].to_s.scrub.strip.chomp
wpscan_gemset = File.readlines("#{wpscan_root}/.ruby-gemset")[0].to_s.scrub.strip.chomp
`sudo bash \
  --login \
  -c "
    source /etc/profile.d/rvm.sh; \
    rvm install ruby-#{wpscan_ruby_version}; \
    rvm use ruby-#{wpscan_ruby_version}; \
    rvm gemset create #{wpscan_gemset}; \
    rvm use ruby-#{wpscan_ruby_version}@#{wpscan_gemset}; \
    cd #{wpscan_root}; \
    gem install bundler; \
    bundle install --without test; \
    rake install
  "
`
puts 'complete.'

Version data entries

812 entries across 812 versions & 1 rubygems

Version Path
pwn-0.5.235 vagrant/provisioners/wpscan.rb
pwn-0.5.234 vagrant/provisioners/wpscan.rb
pwn-0.5.233 vagrant/provisioners/wpscan.rb
pwn-0.5.232 vagrant/provisioners/wpscan.rb
pwn-0.5.231 vagrant/provisioners/wpscan.rb
pwn-0.5.230 vagrant/provisioners/wpscan.rb
pwn-0.5.229 vagrant/provisioners/wpscan.rb
pwn-0.5.228 vagrant/provisioners/wpscan.rb
pwn-0.5.227 vagrant/provisioners/wpscan.rb
pwn-0.5.226 vagrant/provisioners/wpscan.rb
pwn-0.5.225 vagrant/provisioners/wpscan.rb
pwn-0.5.224 vagrant/provisioners/wpscan.rb
pwn-0.5.223 vagrant/provisioners/wpscan.rb
pwn-0.5.222 vagrant/provisioners/wpscan.rb
pwn-0.5.221 vagrant/provisioners/wpscan.rb
pwn-0.5.220 vagrant/provisioners/wpscan.rb
pwn-0.5.219 vagrant/provisioners/wpscan.rb
pwn-0.5.217 vagrant/provisioners/wpscan.rb
pwn-0.5.216 vagrant/provisioners/wpscan.rb
pwn-0.5.215 vagrant/provisioners/wpscan.rb