apt-get install build-essential libreadline-dev libssl-dev libpq5 libpq-dev libreadline5 libsqlite3-dev libpcap-dev openjdk-7-jre subversion git-core autoconf postgresql pgadmin3 curl zlib1g-dev libxml2-dev libxslt1-dev vncviewer libyaml-dev ruby1.9.3 nmap -y
gem install --verbose --debug pcaprub wirble pg sqlite3 msgpack activerecord redcarpet rspec simplecov yard bundler
Get the latest Metasploit from Git:
cd /opt
git clone https://github.com/rapid7/metasploit-framework.git
Create global commands and install the gems:
cd metasploit-framework
bash -c 'for MSF in $(ls msf*); do ln -s /opt/metasploit-framework/$MSF /usr/local/bin/$MSF;done'
bundle install
Setup the database:
su postgres
createuser msf -P -S -R -D
createdb -O msf msf
exit
Create the database file: nano /opt/metasploit-framework/database.yml
adding to it:
production:
adapter: postgresql
database: msf
username: msf
password:
host: 127.0.0.1
port: 5432
pool: 75
timeout: 5
Create an environmental variable:
sh -c "echo export MSF_DATABASE_CONFIG=/opt/metasploit-framework/database.yml >> ~/.bashrc"
Go to msfconsole and provision database
msfconsole # open msf console and connect to db
msf> db_connect -y /opt/local/config/database.yml
msf> exit
This should be launched without ssl, or else Armitage won't work
msfrpcd -U msfuser2 -P msfpassword2 -S -a 127.0.0.1 -t Msg
Download Armitage from here: http://www.fastandeasyhacking.com/download
I've tried to launch on 0.0.0.0, and connect to my server from my mac, it's just says request timeout
. You can install armitage on vps, and use ssh xforwarding to launch it.
If you have some ideas, fork this doc, or add the comment. Thanks!
Thank, a mistake... Go to msfconsole and provision database
If you have some problem with password connection to db
And edit database.yml
Reset services postgresql
;D