Home General Computer Multimedia Business Lounge
|
Tutor Installing Metasploit Framework + PostgreSQL DB Backend Under Ubuntu 12.04 LTS
|
|
05-27-2012, 11:22 AM
|
|||
|
|||
|
Installing Metasploit Framework + PostgreSQL DB Backend Under Ubuntu 12.04 LTS
It occured to me that there may be some individuals using Ubuntu Linux that want to follow along with the Metasploitable Guide, or just otherwise have the Metasploit Framework without using Back Track for it. So here is a quick run down on installing and configuring Metasploit Framework on Ubuntu 12.04 LTS, with a PostgreSQL backend. This should work on other versions of Ubuntu as well. The advantage of using 12.04 though, is that the ruby libraries from the repos are a bit newer, and you will get slightly better performance out of Metasploit Framework by using them.
Satisfying Dependencies First we must satisfy all the Metasploit Framework Dependencies. Code: sudo apt-get update && sudo apt-get install ruby libopenssl-ruby libyaml-ruby libdl-ruby libiconv-ruby libpq-dev libpq5 libreadline-ruby irb ri rubygems subversion build-essential ruby-dev libpcap-dev postgresql-8.4 nmapInstalling the Postgres Ruby Gem Next we need to install the pgSQL Ruby gem. Code: sudo gem install pgInstalling Metasploit Framework Next we need to install the Metasploit Framework itself, we will be using subversion to do so. It is also used to update the framework, though now you can also get the latest snapshots via Git. Code: sudo mkdir /opt/framework3Configuring Extensions Next to configure raw socket and wifi extension. Raw Socket Extension Code: cd /opt/framework3/msf/external/pcaprubWireless Extension Code: cd /opt/framework3/msf/external/ruby-lorcon2Add Metasploit To Path Code: sudo ln -sf /opt/framework3/msf/msf* /usr/local/binConfiguring Database Back-End Create the new database user Code: sudo -sCreate a password and answer the following questions appropriately (n is a safe default). Create Database Code: create db –owner=msf msfRunning Metasploit Framework and Connecting to Your DB Backend To start Metasploit Framework do the following Code: sudo msfconsoleConnecting To your Database To connect to our database from Metasploit framework console we’ll do the following. Code: db_driver postgresqlNote : You can also add these to your /opt/framework/msf/msfconsole.rc file and the database will connect at run time. where msf:msf is the username:password 127.0.0.1 is the host running PGSQL and msf is the database name. Hope this was helpful. P.S : I’m still in a creative slump so I know this was a cop-out sorry guys lol :-P Sumber: http://dangertux.wordpress.com/2011/12/0...12-04-lts/ |
|||
|
05-27-2012, 01:32 PM
|
|||
|
|||
RE: Installing Metasploit Framework + PostgreSQL DB Backend Under Ubuntu 12.04 LTS
(05-27-2012 11:22 AM)ubuntux Wrote: It occured to me that there may be some individuals using Ubuntu Linux that want to follow along with the Metasploitable Guide, or just otherwise have the Metasploit Framework without using Back Track for it. So here is a quick run down on installing and configuring Metasploit Framework on Ubuntu 12.04 LTS, with a PostgreSQL backend. This should work on other versions of Ubuntu as well. The advantage of using 12.04 though, is that the ruby libraries from the repos are a bit newer, and you will get slightly better performance out of Metasploit Framework by using them. om ubuntux ane dlu y om
|
|||
|
05-27-2012, 09:45 PM
|
|||
|
|||
|
RE: Installing Metasploit Framework + PostgreSQL DB Backend Under Ubuntu 12.04 LTS
ente emang mantapp om, ane cuba duluuuuuuu
|
|||
|
05-27-2012, 10:07 PM
|
|||
|
|||
|
RE: Installing Metasploit Framework + PostgreSQL DB Backend Under Ubuntu 12.04 LTS
punya ane malah blom bisa konek PostgreSQL
|
|||
|
06-03-2012, 06:26 PM
|
|||
|
|||
|
RE: Installing Metasploit Framework + PostgreSQL DB Backend Under Ubuntu 12.04 LTS
nice share omm.. :)
|
|||
|
« Next Oldest | Next Newest »
|
| Topic Tools | ||||||
| ||||||
| Users Browsing |
| 1 Guest(s) |





ane
dlu y om






