Showing posts with label metasploit. Show all posts
Showing posts with label metasploit. Show all posts

Saturday, September 22, 2012

Instalasi Metasploit 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 http://www.metasploit.com/ 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 :
  • 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.
  • 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
  • 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
  • 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. 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
  • 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), jalankan metasploit msf> db_driver postgresql msf> db_connect msf_user:msfpass@127.0.0.1:5432/msf_database msf> db_hosts

Categories: ,

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: , , , ,

Saturday, September 10, 2011

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, just as simple as download, run the install script and done but then you need some extra configuration, just a litlle.
1. You can download from this URL. Choose your operating system, for me I choose the Linux 32bit. If you use Linux just use wget to download from the URL.
 
wget http://updates.metasploit.com/data/releases/framework-4.0.0-linux-mini.run
2. Install the dependencies if you still need, check this dependency,
$ 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. Run the install script. Before you can run the *.run script you need to make this as an executable.
chmod ugo+x framework-4.0.0-linux-mini.run And then finally you can execute that
./framework-4.0.0-linux-mini.run Wait till completed and..Yeay..you have a Metasploit framework installed on your machine. It's working now, you can execute msfconsole in your terminal and get the framework start, but to make it fully running you still need to configure the database.
4. Install database, I prefer PostgreSql as recommended by the Metasploit itself.
$ sudo apt-get install postgresql-8.4
$ sudo apt-get install rubygems libpq-dev
$ sudo gem install pg
5. The last thing is setting up the Postgre to work with Metasploit.
Be System postgres user
$ sudo -s
# su postgres
Create Postgre User
# createuser msf_user -P You will be prompted like this
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
create your password, for example I write 'msfpass' as password
Creating the database
createdb --owner=msf_user msf_database CTRL-D to exit from postgres user or switch to your Linux user.
Start the framework, and type
msf> db_driver postgresql
msf> db_connect msf_user:msfpass@127.0.0.1:5432/msf_database
msf> db_hosts
change the msfpass to your password.
Done. You have fully install Metaploit Framework.

Categories: , , , , , , ,

Copyright © Johannes Dwi Cahyo | Powered by Blogger

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