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

Version Path
pwn-0.5.173 packer/provisioners/beef.rb
pwn-0.5.172 packer/provisioners/beef.rb
pwn-0.5.171 packer/provisioners/beef.rb
pwn-0.5.170 packer/provisioners/beef.rb
pwn-0.5.169 packer/provisioners/beef.rb
pwn-0.5.168 packer/provisioners/beef.rb
pwn-0.5.167 packer/provisioners/beef.rb
pwn-0.5.166 packer/provisioners/beef.rb
pwn-0.5.165 packer/provisioners/beef.rb
pwn-0.5.164 packer/provisioners/beef.rb
pwn-0.5.163 packer/provisioners/beef.rb
pwn-0.5.162 packer/provisioners/beef.rb
pwn-0.5.161 packer/provisioners/beef.rb
pwn-0.5.160 packer/provisioners/beef.rb
pwn-0.5.159 packer/provisioners/beef.rb
pwn-0.5.158 packer/provisioners/beef.rb
pwn-0.5.157 packer/provisioners/beef.rb
pwn-0.5.156 packer/provisioners/beef.rb
pwn-0.5.155 packer/provisioners/beef.rb
pwn-0.5.154 packer/provisioners/beef.rb