Thursday, March 1, 2012

Install Metasploit 4 di Ubuntu 11.04

Saya kira anda sudah tahu tentang Metasploit bila sampai ke blog saya ini melalui search engine, jika belum maka anda dapat membaca disini mengenai metasploit, mengenai fungsinya dan berbagai kemampuannya.
Instalasi Metasploit sebenarnya cukup mudah, hanya running install script dan mengikuti urutan langkah, dan akhirnya sedikit tambahan konfigurasi di akhir.
Langkah-langkah yang saya lakukan :

  1. Download dari url ini. Pilih sistem operasi yang akan dipakai, untuk saya, saya memilih Linux 32bit. Untuk memudahkan juga bisa langsung gunakan wget untuk mendownload file tersebut.wget http://downloads.metasploit.com/data/releases/metasploit-latest-linux-installer.run
  2. Install dependency yang dibutuhkan, mungkin juga beberapa dependency ini sudah terpenuhi di machine anda.
    $ sudo apt-get install ruby libopenssl-ruby libyaml-ruby libdl-ruby libiconv-ruby libreadline-ruby irb ri rubygems
    $ sudo apt-get install subversion
    $ sudo apt-get install build-essential ruby-dev libpcap-dev
  3. Jalankan install script yang sudah anda download, sebelumnya buat agar file .run itu bisa dieksekusi.
    chmod ugo+x metasploit-latest-linux-installer.run
    ./metasploit-latest-linux-installer.run

  4. Setelah ini instalasi selesai, anda sudah memiliki framework metasploit terinstall di komputer anda. Anda sudah bisa me-run msfconsole, tapi untuk fungsionalitas penuhnya kita perlu mensetting database.
  5. Saya memilih PostgreSql, sesuai saran dari pembuat Metasploit juga.
    $ sudo apt-get install postgresql-8.4
    $ sudo apt-get install rubygems libpq-dev
    $ sudo gem install pg
  6. Dilanjutkan dengan mensetting Postgre dan Metasploit
    Di terminal pindah ke user Postgre
    $ sudo -s
    # su postgres Create Postgre User
    # createuser msf_user -P

    Anda akan mendapat prompt seperti ini
    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

    Tentukan password untuk user anda, misalnya saya menggunakan password msfpass
    Dan akhirnya buatlah database baru
    createdb --owner=msf_user msf_database
    Kemudian kembali ke user linux anda (ctrl-D)
  7. Jalankan metasploit
    msf> db_driver postgresql
    msf> db_connect msf_user:msfpass@127.0.0.1:5432/msf_database
    msf> db_hosts

Categories: , , , ,

Related Posts:

  • Android App for HackerAndroid actually same as other linux Distribution, it just have some speciality (do not say limitability please..) to just run on ARM based device. The backbone is same, Linux Powerfull Kernel. It make me curious, is Android … Read More
  • Megaupload Down -- SOPA & PIPA Kaget waktu pagi ini membuka urutan web kesayangan, di salah satu web kesayangan saya, yang wajib dikunjungi setiap pagi ada artikel yang sangat istimewa. Di LifeHacker saya langsung terpaku pada satu artikel Five Great Alte… Read More
  • Anonymous We [Anonymous] just happen to be a group of people on the internet who need — just kind of an outlet to do as we wish, that we wouldn't be able to do in regular society. ...That's more or less the point of it. Do as you wish… Read More
  • Installing Metapsploit 4 in Ubuntu 11.04 I think you've already know what is Metasploit if you come up to my blog post from search engine. If not you can read here what is metasploit, what is need for, what capabilities of, etc.. Installing Metasploit is easy, j… Read More
  • 5 Most Popular Linux Hackable Gadget Linux is a powerful and versatile operating system that can be utilized to hack just about any electronic hardware device. To prove it, I have here a list of popular gadgets that are already known to run Linux. 1. Ninten… Read More

0 komentar:

Copyright © 2025 Johannes Dwi Cahyo | Powered by Blogger

Design by Anders Noren | Blogger Theme by NewBloggerThemes.com | BTheme.net      Up ↑