Pada terminal ubuntu 11.04 :
wget http://updates.metasploit.com/data/releases/framework-3.7.0-linux-mini.run
Kemudian Install Metasploit Framework pada ubuntu 11.04
chmod +x framework-3.7.0-linux-mini.run
./framework-3.7.0-linux-mini.run
Untuk help jalankan perintah :
./framework-3.7.0-linux-mini.run --help
Update Metasploit framework pada ubuntu 11.04, ketikkan pada console
msfupdate
Install Postgresql dan defencies nya.
apt-get install postgresql pgadmin3 libpq-dev sun-java6-plugin ruby rubygems libreadline-dev libssl-dev libpq5 ruby-dev nmap
gem install pg
su postgres
createuser metasploit -P
Enter password for new role:
Enter it again:
Shall the new role be a superuser? (y/n) n
Shall the new role be allowed to create databases? (y/n) n
Shall the new role be allowed to create more new roles? (y/n) n
createdb --owner=metasploit metasploit
Jalankan msfconsole dan ikuti apa yang di tampilkannya.
msfconsole
msf> db_driver postgresql
msf> db_connect metasploit:metasploit@127.0.0.1:5432/metasploit
msfrpcd harus di start,
msfrpcd -f -U metasploit -P metasploit -t Basic
Start Armitage :
/opt/framework-3.7.0/msf3/armitage
chek credensial postgresql, klik tombol connect
User: metasploit
Password: metasploit
DB connect string: metasploit:metasploit@127.0.0.1/metasploit
Dalam beberapa detik armitage akan tampi seperti di bawah ini:
Pada Armitage, Pilih Hosts > Nmap scan > Intense Scan -> masukkan ip dan subnest yang akan di scan,
Pada kasus ini kita akan menemukan error dengan pesan:
The address is already in use (0.0.0.0:55553) , please check the process that is keeping the port 55553 busy.Kita bisa dengan mudah menjalankan itu, dengan perintah :
lsof -i :55553
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
.ruby.bin 5538 root 4u IPv4 154865 0t0 TCP *:55553
Dalam kasus seperti ini kita harus menjalankannya pada port 55553, dan port 55553 sendiri sudah ada yang menggunakannya, solusinya dalah dengan mengkill port 55553 yang sedang run, perintahnya
kill -9 55553
kemudian restart msfrpcd dengan perintah :
msfrpcd -f -U metasploit -P metasploit -t Basic


