Sha256: 9ff85381d5157cd86ac8bf0b6a263648a3f64e1c63c5d93639af2c2bd8557a37

Contents?: true

Size: 810 Bytes

Versions: 538

Compression:

Stored size: 810 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

538 entries across 538 versions & 1 rubygems

Version Path
pwn-0.4.911 vagrant/provisioners/metasploit.rb
pwn-0.4.910 vagrant/provisioners/metasploit.rb
pwn-0.4.909 vagrant/provisioners/metasploit.rb
pwn-0.4.908 vagrant/provisioners/metasploit.rb
pwn-0.4.907 vagrant/provisioners/metasploit.rb
pwn-0.4.906 vagrant/provisioners/metasploit.rb
pwn-0.4.905 vagrant/provisioners/metasploit.rb
pwn-0.4.904 vagrant/provisioners/metasploit.rb
pwn-0.4.903 vagrant/provisioners/metasploit.rb
pwn-0.4.902 vagrant/provisioners/metasploit.rb
pwn-0.4.901 vagrant/provisioners/metasploit.rb
pwn-0.4.900 vagrant/provisioners/metasploit.rb
pwn-0.4.899 vagrant/provisioners/metasploit.rb
pwn-0.4.898 vagrant/provisioners/metasploit.rb
pwn-0.4.897 vagrant/provisioners/metasploit.rb
pwn-0.4.896 vagrant/provisioners/metasploit.rb
pwn-0.4.895 vagrant/provisioners/metasploit.rb
pwn-0.4.894 vagrant/provisioners/metasploit.rb
pwn-0.4.893 vagrant/provisioners/metasploit.rb
pwn-0.4.892 vagrant/provisioners/metasploit.rb