Sha256: 702ee8af6bdfcbecc904478fc0bd62dd5e80c70b8f16e405ceb8fb812a8364e7
Contents?: true
Size: 768 Bytes
Versions: 813
Compression:
Stored size: 768 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true # Install BeEF from Source printf 'Installing BeEF ***********************************************************************' Dir.chdir('/opt') beef_root = '/opt/beef-dev/' `sudo git clone https://github.com/beefproject/beef.git beef-dev` beef_ruby_version = File.readlines("#{beef_root}/.ruby-version")[0].to_s.scrub.strip.chomp beef_gemset = File.readlines("#{beef_root}/.ruby-gemset")[0].to_s.scrub.strip.chomp ` sudo bash \ --login \ -c "\ source /etc/profile.d/rvm.sh && \ rvm install ruby-#{beef_ruby_version} && \ rvm use ruby-#{beef_ruby_version} && \ rvm gemset create #{beef_gemset} && \ cd #{beef_root} && \ gem install bundler && \ bundle install " `
Version data entries
813 entries across 813 versions & 1 rubygems