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.236 packer/provisioners/beef.rb
pwn-0.5.235 packer/provisioners/beef.rb
pwn-0.5.234 packer/provisioners/beef.rb
pwn-0.5.233 packer/provisioners/beef.rb
pwn-0.5.232 packer/provisioners/beef.rb
pwn-0.5.231 packer/provisioners/beef.rb
pwn-0.5.230 packer/provisioners/beef.rb
pwn-0.5.229 packer/provisioners/beef.rb
pwn-0.5.228 packer/provisioners/beef.rb
pwn-0.5.227 packer/provisioners/beef.rb
pwn-0.5.226 packer/provisioners/beef.rb
pwn-0.5.225 packer/provisioners/beef.rb
pwn-0.5.224 packer/provisioners/beef.rb
pwn-0.5.223 packer/provisioners/beef.rb
pwn-0.5.222 packer/provisioners/beef.rb
pwn-0.5.221 packer/provisioners/beef.rb
pwn-0.5.220 packer/provisioners/beef.rb
pwn-0.5.219 packer/provisioners/beef.rb
pwn-0.5.217 packer/provisioners/beef.rb
pwn-0.5.216 packer/provisioners/beef.rb