Install dan Konfigurasi Metasploit Framework di Ubuntu

Rabu, 25 November 2015

Metasploit Framework hadir pre-installed di OS khusus pentest jaringan seperti BackBox Linux, Kali, Cyborg, Parrot OS dll. Namun jika kalian adalah pengguna Ubuntu dan ingin belajar Metasploit, berikut tutorial cara install Msf di Ubuntu Linux beserta konfigurasi database nnya.
Pertama, buka terminal dan lakukan update sistem.
sudo apt-get update
sudo apt-get upgrade


Selanjutnya, menginstall package yang dibutuhkan agar msf berjalan.
sudo 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

Setelah semua terpasang termasuk Ruby, saatnya menambahkan ruby libraries.
sudo gem install wirble sqlite3 bundler

Selanjutnya, ini adalah langkah opsional. Metasploit membutuhkan nmap untuk melakukan scanning port dan bug pada victim, sehingga kalian bisa menginstallnya.
sudo apt-get install nmap

Selanjutnya, membuat user dan database yang akan digunakan oleh metasploit.
sudo -s
su postgres
createuser msf -P -S -R -D
createdb -O msf msf
exit
exit

Selanjutnya, menginstall Metasploit ke Ubuntu.
cd /opt
sudo git clone https://github.com/rapid7/metasploit-framework.git

Next..
cd /opt/metasploit-framework
sudo bundle install

Lalu setting konfigurasi database nya.
sudo gedit /opt/metasploit-framework/config/database.yml

production:
 adapter: postgresql
 database: msf
 username: msf
 password:
 host: 127.0.0.1
 port: 5432
 pool: 75
 timeout: 5

Selanjutnya , first running.
/opt/metasploit-framework
sudo msfconsole

Sekian tutor kali ini semoga bermanfaat.

Catatan :
Tutorial ini sudah outdated dan sepertinya bakal error kalau diimplementasikan ke Ubuntu versi 16.04 keatas.
Silahkan menginstall Metasploit di Ubuntu menggunakan cara dibawah ini :

Artikel Terkait Linux ,Metasploit ,Security ,Ubuntu

4 komentar:

Anonim mengatakan...

hacker

Anonim mengatakan...

passwordnya kosong atau spasi?
createdb: could not connect to database template1: could not connect to server: Connection refused
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

Radii Gebastian mengatakan...

saya ada masalah pada saat penginstallan ruby1.9.3, dan perintah saya ubah menjadi #~ sudo apt-get install ruby
ketika mengetikkan perintah #~ sudo bundle install
Muncul pesan Error : Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

Apa yang harus saya lakukan?

current directory: /var/lib/gems/2.3.0/gems/ffi-1.9.14/ext/ffi_c
/usr/bin/ruby2.3 -r ./siteconf20161213-21212-1aabwj1.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

extconf failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.3.0/gems/ffi-1.9.14 for inspection.
Results logged to /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/ffi-1.9.14/gem_make.out

An error occurred while installing ffi (1.9.14), and Bundler cannot continue.
Make sure that `gem install ffi -v '1.9.14'` succeeds before bundling.

Radii Gebastian mengatakan...

Muncul pesan Error : Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: /var/lib/gems/2.3.0/gems/ffi-1.9.14/ext/ffi_c
/usr/bin/ruby2.3 -r ./siteconf20161213-21212-1aabwj1.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

extconf failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.3.0/gems/ffi-1.9.14 for inspection.
Results logged to /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/ffi-1.9.14/gem_make.out

An error occurred while installing ffi (1.9.14), and Bundler cannot continue.
Make sure that `gem install ffi -v '1.9.14'` succeeds before bundling.

Apa yang harus saya lakukan?

Posting Komentar