首页 » NetworkSec » Penetration » 正文

ubuntu14安装MSF5

apt-get install somelibs

apt-get install build-essential libreadline-dev libssl-dev libpq5 libpq-dev libreadline5 libsqlite3-dev libpcap-dev openjdk-7-jre git-core autoconf postgresql pgadmin3 curl zlib1g-dev libxml2-dev libxslt1-dev vncviewer libyaml-dev zlib1g-dev

apt-get install libxml2-dev libxslt1-dev vncviewer libyaml-dev ruby1.9.3 ruby-dev

apt-get install svn

apt-get install nmap

apt-get install rvm

apt-get install libpq-dev

apt-get install build-essential patch ruby-dev zlib1g-dev liblzma-dev

apt-get install openssl ruby-openssl libssl-dev

rbenv install 2.6.2

rbenv global 2.6.2

 

su postgres
createuser msf -P -S -R -D

createdb -O msf msf

 

git clone git://github.com/sstephenson/rbenv.git .rbenv

echo ‘export PATH=”$HOME/.rbenv/bin:$PATH”‘ >> ~/.bashrc

echo ‘eval “$(rbenv init -)”‘ >> ~/.bashrc

git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build

echo ‘export PATH=”$HOME/.rbenv/plugins/ruby-build/bin:$PATH”‘ >> ~/.bashrc

git clone git://github.com/dcarley/rbenv-sudo.git ~/.rbenv/plugins/rbenv-sudo

 

git clone https://github.com/rapid7/metasploit-framework.git

cd metasploit-framework/

rvm –default use ruby-2.1.6@metasploit-framework

cd metasploit-framework/

bash -c ‘for MSF in $(ls msf*); do ln -s /opt/metasploit-framework/$MSF /usr/local/bin/$MSF;done’

vim /opt/metasploit-framework/config/database.yml

sh -c “echo export MSF_DATABASE_CONFIG=/opt/metasploit-framework/config/database.yml >> /etc/profile”

 

curl -# -o /tmp/armitage.tgz http://www.fastandeasyhacking.com/download/armitage150813.tgz

tar -xvzf /tmp/armitage.tgz -C /opt

ln -s /opt/armitage/armitage /usr/local/bin/armitage

ln -s /opt/armitage/teamserver /usr/local/bin/teamserver

sh -c “echo java -jar /opt/armitage/armitage.jar \$\* > /opt/armitage/armitage”

perl -pi -e ‘s/armitage.jar/\/opt\/armitage\/armitage.jar/g’ /opt/armitage/teamserver

 

vim /opt/metasploit-framework/config/database.yml

sh -c “echo export MSF_DATABASE_CONFIG=/opt/metasploit-framework/config/database.yml >> /etc/profile”

 

gem install rubylibs -v ‘1.2.3’

gem install bundler
gem install nokogiri -v ‘1.10.4’
gem install bcrypt -v ‘3.1.12’
gem install ed25519 -v ‘1.2.4’
gem install json -v ‘2.2.0’
gem install msgpack -v ‘1.3.1’
gem install redcarpet -v ‘3.5.0’
gem install sqlite3 -v ‘1.3.13’

 

Comment

please input captcha *