forked from 0x90/kali-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kali-ruby.sh
executable file
·35 lines (26 loc) · 1.2 KB
/
kali-ruby.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
#
. helper.sh
if ask "Do you want to install RVM ands set ruby-1.9.3 to default?" Y; then
curl -L https://get.rvm.io | bash -s stable
source /usr/local/rvm/scripts/rvm
rvm install 1.9.3
rvm use 1.9.3 --default
# This loads RVM into a shell session.
#echo [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" >> ~/.bashrc
echo source /usr/local/rvm/scripts/rvm >> ~/.bashrc
fi
if ask "Do you want to install ruby and extras?" Y; then
# This tells RubyGems to not generate documentation for every library it installs.
echo "gem: --no-rdoc --no-ri" > ~/.gemrc
apt-get -y install ruby-full ruby-dev libpcap-ruby libpcap-dev libsp-gxmlcpp-dev libsp-gxmlcpp1 libxslt1.1 libxslt1-dev libxrandr-dev libfox-1.6-dev
update-alternatives --config ruby
gem install bundler risu ffi multi_json childprocess selenium-webdriver mechanize fxruby net-http-digest_auth pcaprub \
net-http-persistent nokogiri domain_name unf webrobots ntlm-http net-http-pipeline nfqueue pry colorize mechanize
fi
#TODO: Add installation
# to make lorcon available to metasploit
#cd ../ruby-lorcon/
#ruby extconf.rb
#make
#make install