Sha256: 13609e4614c5e5ce7eac4e4e795034ba0980766ad271bfae13e8a413d07c4756

Contents?: true

Size: 1 KB

Versions: 576

Compression:

Stored size: 1 KB

Contents

#!/bin/bash --login
source /etc/profile.d/globals.sh

if [[ $PWN_ROOT == '' ]]; then
  if [[ ! -d '/pwn' ]]; then
    pwn_root=$(pwd)
  else
    pwn_root='/pwn'
  fi
else
  pwn_root="${PWN_ROOT}"
fi

os=$(uname -s)

case $os in
  'Darwin')
    sudo port -N install bison openssl curl git zlib libyaml libxml2 autoconf ncurses automake libtool libpcap
    ;;
  'Linux')
    $screen_cmd "${apt} install -y build-essential bison openssl libreadline-dev curl git-core git zlib1g zlib1g-dev libssl-dev libyaml-dev libxml2-dev autoconf libc6-dev ncurses-dev automake libtool libpcap-dev libsqlite3-dev libgmp-dev ${assess_update_errors}"
    grok_error
    ;;
  *)
    echo "${os} not currently supported."
    exit 1
esac


# We clone PWN here instead of pwn.sh so ruby knows what version of ruby to install
# per the latest value of .ruby-version in the repo.
sudo /bin/bash --login -c "git clone https://github.com/0dayinc/pwn.git ${pwn_root}"

ruby_version=`cat ${pwn_root}/.ruby-version`
rvmsudo rvm install ruby-$ruby_version

Version data entries

576 entries across 576 versions & 1 rubygems

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