Skip to content

Installation

Brendan Coles edited this page May 2, 2016 · 15 revisions

Linux

Ubuntu / Debian / Kali

sudo apt-get install build-essential ruby ruby-dev rubygems
gem install ssrf_proxy

Red Hat / Fedora / CentOS

sudo yum install ruby ruby-devel rubygems
gem install ssrf_proxy

Arch Linux

pacman -S base-devel ruby
PATH="$(ruby -e 'print Gem.user_dir')/bin:$PATH"
gem install ssrf_proxy

ElementaryOS

sudo apt-get install build-essential curl

# rvm - install rvm
cd /tmp
curl -sSL https://get.rvm.io -o installer.sh
bash installer.sh stable

# rvm - install preferred version of ruby with rvm
rvm install 2.2.4

# install SSRF Proxy gem
gem install ssrf_proxy

BSD

FreeBSD

sudo pkg install bash curl

# rvm - install rvm
cd /tmp
curl -sSL https://get.rvm.io -o installer.sh
bash installer.sh stable

# rvm - install preferred version of ruby with rvm
rvm install 2.2.4

# install SSRF Proxy gem
gem install ssrf_proxy

HardenedBSD

pkg install bash curl ruby rubygem-bundler
gem install ssrf_proxy

OpenBSD

pkg_add -i -v bash curl ruby ruby-gems
gem install ssrf_proxy

Windows

# Download and install Ruby - http://rubyinstaller.org/downloads/

# Download and install DevKit - http://github.com/oneclick/rubyinstaller/wiki/Development-Kit
cd C:\DevKit
ruby dk.rb init
ruby dk.rb install

# install SSRF Proxy gem
gem install ssrf_proxy

Mac OSX

Mac OSX is not officially supported. Attempt at your own risk.

brew install rbenv rbenv-gem-rehash ruby-build rubygems
gem install ssrf_proxy

Solaris 11

Solaris is not officially supported. Attempt at your own risk.

# fix $PATH for gnutils
export PATH="/usr/gnu/bin:$PATH"

# rvm - install rvm
curl -sSL https://get.rvm.io | bash -s stable

# rvm - set rvm executable as executable
chmod +x /usr/local/rvm/bin/rvm

# rvm - add rvm function to Bash profile and reload profile
echo ' [[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm ' >> ~/.bash_profile
source ~/.bash_profile

# rvm - check rvm requirements
rvm requirements

# rvm - install preferred version of ruby with rvm
rvm install 2.2.4

# set gem executable as executable
chmod +x /usr/local/rvm/rubies/ruby-2.2.4/bin/gem

# install libyaml from OpenCSW
# note: as per https://www.opencsw.org/packages/CSWlibyaml-dev/
pkgadd -d http://get.opencsw.org/now
/opt/csw/bin/pkgutil -U
/opt/csw/bin/pkgutil -y -i libyaml_dev
/usr/sbin/pkgchk -L CSWlibyaml-dev # list files

# add /usr/ccs/bin and /usr/sfw/bin to $PATH
export PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin"

# add gmake to $PATH
export MAKE=/usr/bin/gmake

# install SSRF Proxy gem
gem install ssrf_proxy