Sha256: ed1719bc199936001b562a3d89c121380229b6b1a9f1f3799063d67ad201282e

Contents?: true

Size: 777 Bytes

Versions: 792

Compression:

Stored size: 777 Bytes

Contents

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

Dir.chdir('/opt')
wpscan_root = '/opt/wpscan-dev/'
`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 "\
      apt install -y libcurl4-gnutls-dev && \
      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
    "
`

Version data entries

792 entries across 792 versions & 1 rubygems

Version Path
pwn-0.5.214 packer/provisioners/wpscan.rb
pwn-0.5.213 packer/provisioners/wpscan.rb
pwn-0.5.212 packer/provisioners/wpscan.rb
pwn-0.5.211 packer/provisioners/wpscan.rb
pwn-0.5.210 packer/provisioners/wpscan.rb
pwn-0.5.209 packer/provisioners/wpscan.rb
pwn-0.5.207 packer/provisioners/wpscan.rb
pwn-0.5.206 packer/provisioners/wpscan.rb
pwn-0.5.205 packer/provisioners/wpscan.rb
pwn-0.5.204 packer/provisioners/wpscan.rb
pwn-0.5.203 packer/provisioners/wpscan.rb
pwn-0.5.202 packer/provisioners/wpscan.rb
pwn-0.5.201 packer/provisioners/wpscan.rb
pwn-0.5.200 packer/provisioners/wpscan.rb
pwn-0.5.199 packer/provisioners/wpscan.rb
pwn-0.5.198 packer/provisioners/wpscan.rb
pwn-0.5.197 packer/provisioners/wpscan.rb
pwn-0.5.196 packer/provisioners/wpscan.rb
pwn-0.5.195 packer/provisioners/wpscan.rb
pwn-0.5.194 packer/provisioners/wpscan.rb