Sha256: 429bbb30b35fd02c9752cf0f3cc433abf62dcd5f8043ae3be6d6b1391633574c

Contents?: true

Size: 809 Bytes

Versions: 254

Compression:

Stored size: 809 Bytes

Contents

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

print 'Updating Metasploit...'
metasploit_root = '/opt/metasploit-framework-dev'
puts `sudo /bin/bash --login -c "cd #{metasploit_root} && rm Gemfile.lock && git pull"`
metasploit_ruby_version = File.readlines("#{metasploit_root}/.ruby-version")[0].to_s.scrub.strip.chomp
puts `
  sudo bash \
    --login \
    -c "
      source /etc/profile.d/rvm.sh; \
      rvm install ruby-#{metasploit_ruby_version}; \
      rvm use ruby-#{metasploit_ruby_version}; \
      rvm gemset create metasploit-framework; \
      cd #{metasploit_root}; \
      gem install bundler && \
      bundle install && \
      systemctl restart msfrpcd.service; \
      ls tools/exploit | while read util; do \
        ln -sf ./tools/exploit/$util; \
      done
    "
`
puts 'complete.'

Version data entries

254 entries across 254 versions & 1 rubygems

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