Metasploit mailing list archives

Automated exploit using Mysql


From: jyotsna.krsna at gmail.com (Jyotsna Sharma)
Date: Sat, 17 Jan 2009 20:14:52 +0530

Thanks nicholas for ur prompt reply.
I am able to use sqlite3 . I am facing problem with mysql.
Thanks and regards
Jyotsana


On 1/17/09, Nicholas Harvey <hattrickinc at gmail.com> wrote:

 Use
Load db_sqlite3 instead

Sent from my hacked iPhone

On Jan 16, 2009, at 11:42 PM, "Jyotsna Sharma" <jyotsna.krsna at gmail.com>
wrote:



 Hi

I am trying to utilize the automated exploit launch feature of metasploit.
SQLite3 works fine but when i try to create a mysql database ,sometimes it
says database creation complete msf>load db_mysql
[*] Successfully loaded plugin: db_mysql
msf>db_create root:mypass at localhost/db1
[*] Database creation complete (check for errors)

but does not create the database. and some times it gives te following
error.

msf > db_create root:ajayks at localhost/ms4
[-] Error while running command db_create: Invalid argument

Call stack:
C:/Documents and Settings/Monu/Application
Data/msf32/plugins/db_mysql.rb:132:in `write'
C:/Documents and Settings/Monu/Application
Data/msf32/plugins/db_mysql.rb:132:in `cmd_db_create'
C:/Documents and Settings/Monu/Application
Data/msf32/lib/rex/ui/text/dispatcher_shell.rb:234:in `send'
C:/Documents and Settings/Monu/Application
Data/msf32/lib/rex/ui/text/dispatcher_shell.rb:234:in `run_command'
C:/Documents and Settings/Monu/Application
Data/msf32/lib/rex/ui/text/dispatcher_shell.rb:196:in `run_single'
C:/Documents and Settings/Monu/Application
Data/msf32/lib/rex/ui/text/dispatcher_shell.rb:191:in `each'
C:/Documents and Settings/Monu/Application
Data/msf32/lib/rex/ui/text/dispatcher_shell.rb:191:in `run_single'
C:/Documents and Settings/Monu/Application
Data/msf32/lib/rex/ui/text/shell.rb:127:in `run'
C:/Documents and Settings/Monu/Application
Data/msf32/lib/msf/ui/gtk2/window/consoles.rb:64:in `start_console'
C:/Documents and Settings/Monu/Application
Data/msf32/lib/msf/ui/gtk2/window/consoles.rb:60:in `initialize'
C:/Documents and Settings/Monu/Application
Data/msf32/lib/msf/ui/gtk2/window/consoles.rb:60:in `new'
C:/Documents and Settings/Monu/Application
Data/msf32/lib/msf/ui/gtk2/window/consoles.rb:60:in `start_console'
C:/Documents and Settings/Monu/Application
Data/msf32/lib/msf/ui/gtk2/window/consoles.rb:343:in `create_console'
C:/Documents and Settings/Monu/Application
Data/msf32/lib/msf/ui/gtk2/window/consoles.rb:397:in `initialize'
C:/Documents and Settings/Monu/Application
Data/msf32/lib/msf/ui/gtk2/app.rb:304:in `new'
C:/Documents and Settings/Monu/Application
Data/msf32/lib/msf/ui/gtk2/app.rb:304:in `on_consoles_activate'
C:/Documents and Settings/Monu/Application
Data/msf32/lib/msf/ui/gtk2/app.rb:31:in `call'
C:/Documents and Settings/Monu/Application
Data/msf32/lib/msf/ui/gtk2/app.rb:31:in `connect'
C:/Documents and Settings/Monu/Application
Data/msf32/lib/msf/ui/gtk2/driver.rb:97:in `call'
C:/Documents and Settings/Monu/Application
Data/msf32/lib/msf/ui/gtk2/driver.rb:97:in `main'
C:/Documents and Settings/Monu/Application
Data/msf32/lib/msf/ui/gtk2/driver.rb:97:in `run'
C:\Documents and Settings\Monu\Application Data/msf32/msfgui:109
C:/Program Files/Metasploit/Framework3/bin/launcher.rb:97:in `load'
C:/Program Files/Metasploit/Framework3/bin/launcher.rb:97
db_hosts or any such command reports :unknown database.
I have installed the latest version of metasploit,ruby, rails and  mysql
gem.
the mysql database is started.

msf > db_hosts
[-] Error while running command db_hosts: #42000Unknown database 'ms'

Call stack:
C:/Documents and Settings/Monu/Application
Data/msf32/data/msfweb/vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:523:in
`read'
C:/Documents and Settings/Monu/Application
Data/msf32/data/msfweb/vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:153:in
`real_connect'
C:/Documents and Settings/Monu/Application
Data/msf32/data/msfweb/vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:527:in
`connect'
........

...........
Pls. help.




--
Jyotsana

 _______________________________________________
http://spool.metasploit.com/mailman/listinfo/framework





-- 
Jyotsana
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.metasploit.com/pipermail/framework/attachments/20090117/841710a8/attachment.htm>


Current thread: