Metasploit mailing list archives

Re: guidence required in installing mysql in metasploit


From: jambunathan sadasivamiyer <jamshuttle77 () gmail com>
Date: Wed, 15 Jun 2011 10:52:39 +0530

hi karan

thanks for you support and guidance.
well, currently i am exploring with windows platform,
is the procedure same for the windows.

can you please tell me what is the procedure in windows xp



On Tue, Jun 14, 2011 at 4:09 PM, Karan Ingle <karan.ingle () gmail com> wrote:

*TO initialize and set up postgres SQL before you use metasploit you have
to do the following:*

*1. initialize the postgres SQL*

#initdb -D ~/metasploitdb

*2. Start the postgres SQL*

# pg_ctl -D ~/metasploitdb start

*3. Now while the service is listening create the user and set a password
for it:*

#createuser -P msfuser

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


*4. Now assign ownership for the DB *

# createdb --owner=msfuser metasploitdb

*WHILE SETTING UP THE METASPLOIT USE:*

PORT: 5432 (DEFAULT FOR POSTGRES SQL)
USERNAME: msfuser
PASSWORD: <WHATEVER YOU SET>
DB: metasploitdb
*
eg. db_connect msfuser:[whatever password you set]@
127.0.0.1:5432/metasploitdb*




On Tue, Jun 14, 2011 at 3:24 PM, Linan Wang <wang.linan () gmail com> wrote:

yes, actually i think metasploit folks prefer postgres over mysql. to
configure postgres:
https://community.rapid7.com/docs/DOC-1268
what i found is there is no need to download the pro package. only svn the
msf3 directory and use mysql/postgres of your own system.


On Tue, Jun 14, 2011 at 10:26 AM, jambunathan sadasivamiyer <
jamshuttle77 () gmail com> wrote:

hi
thanks for sending links
i am getting following error with mysql

Database not connected
msf > db_connect root:userx@127.0.0.1/msf3
[-] Error while running command db_connect: Failed to connect to the
database: uninitialized constant MysqlCompat::MysqlRes
Call stack:
/msf3/lib/msf/ui/console/command_dispatcher/db.rb:1841:in
`db_connect_mysql'
/msf3/lib/msf/ui/console/command_dispatcher/db.rb:1724:in
`cmd_db_connect'
/msf3/lib/rex/ui/text/dispatcher_shell.rb:376:in `run_command'
/msf3/lib/rex/ui/text/dispatcher_shell.rb:338:in `block in run_single'
/msf3/lib/rex/ui/text/dispatcher_shell.rb:332:in `each'
/msf3/lib/rex/ui/text/dispatcher_shell.rb:332:in `run_single'
/msf3/lib/rex/ui/text/shell.rb:143:in `run'
msfconsole:130:in `<main>'
what does it mean

if postgresql is installed by default in metaploit ,

is there any way to select posgresql instead of  mysql

guide me please

jambunathan.ms


On Tue, Jun 14, 2011 at 2:10 PM, Linan Wang <wang.linan () gmail com>wrote:

hi,
i'm new too. seems nobody here in this list takes care of new comers :(
here is the page for db_*.

http://www.offensive-security.com/metasploit-unleashed/Configuring_Databases


  On Tue, Jun 14, 2011 at 9:27 AM, jambunathan sadasivamiyer <
jamshuttle77 () gmail com> wrote:

  From: jambunathan sadasivamiyer <jamshuttle77 () gmail com>
To: framework-request () spool metasploit com
Date: Tue, 14 Jun 2011 13:43:11 +0530
Subject: guidence required in installing mysql in metasploit
hi
I am  a newbie

i am currently working  with Metasploit 3.0

i installed metasploit 3.0 and executed update
now it is 3.8

whether mysql or postgressql is mandatory for this metasploit?
if so ,  how to do that,
if i execute
msf> db_driver
i am getting current mysql
it is asking for mysqladmin and mysql to be installed,
how i should do that.

can  any body guide in this


thanks
jambunathan.ms


--

Jambu

_______________________________________________
https://mail.metasploit.com/mailman/listinfo/framework




--
Best regards

Linan Wang




--

Jambu




--
Best regards

Linan Wang

_______________________________________________
https://mail.metasploit.com/mailman/listinfo/framework




--
Regards,
Karan Ingle.
*Facebook:* *http://www.facebook.com/karan.ingle*
*Twitter:* *http://twitter.com/karantw33ts <http://twitter.com/karantwits>
*
*Website:* *http://www.facebook.com/karaninglephotography*




-- 

Jambu
_______________________________________________
https://mail.metasploit.com/mailman/listinfo/framework

Current thread: