Results 1 to 7 of 7

Thread: Problem with database

  1. #1
    Just burned his ISO
    Join Date
    Mar 2011
    Posts
    3

    Default Problem with database

    Hey, I've been searching around for hours trying to find anything to shed light on a problem I am having importing data into the mysql database, with zero success.

    I don't see what I'm doing wrong here, but first I /etc/init.d/mysql start, and it starts up fine, I'm using db_driver mysql, and when I run db_connect root:toor@127.0.0.1/msf3 it executes without problem.

    So far so good, when I enter db_import /root/test.nessus I get:

    msf > db_import /root/test.nessus[*] Importing 'Nessus XML (v2)' data[*] Importing host 127.0.0.1[*] Successfully imported /root/test.nessus

    Then I run:
    msf > db_hosts

    Hosts
    =====

    address mac name os_name os_flavor os_sp purpose info comments
    ------- --- ---- ------- --------- ----- ------- ---- --------

    I'm completely lost...

  2. #2
    Administrator sickness's Avatar
    Join Date
    Jan 2010
    Location
    Behind the screen.
    Posts
    2,921

    Default Re: Problem with database

    Try it using something else like nmap or NeXpose report see if it works, I think it has something to do with the Nessus XML.
    Back|track giving machine guns to monkeys since 2007 !

    Do not read the Wiki, most your questions will not be answered there !
    Do not take a look at the: Forum Rules !

  3. #3
    Just burned his ISO WARCRY's Avatar
    Join Date
    Mar 2011
    Location
    Algeria
    Posts
    3

    Question Re: Problem with database

    How did you start you msfconsole from menu or from Kconsole?

  4. #4
    Just burned his ISO
    Join Date
    Mar 2011
    Posts
    3

    Default Re: Problem with database

    Interesting. Yeah, it worked. Is there anyway to fix the formatting of the xml or am I stuck doing exploits without a DB? Seems kind of odd that it would work with some people and not with others...

  5. #5
    Just burned his ISO WARCRY's Avatar
    Join Date
    Mar 2011
    Location
    Algeria
    Posts
    3

    Lightbulb Re: Problem with database

    Try and add a host to your db manually. See if it works.
    I'm new to bt too, but starting msfconsole from KDE menu instead of launching it from your Konsole may cause this problem. Don't now why though.

  6. #6
    Administrator sickness's Avatar
    Join Date
    Jan 2010
    Location
    Behind the screen.
    Posts
    2,921

    Default Re: Problem with database

    Quote Originally Posted by Paradigma View Post
    Interesting. Yeah, it worked. Is there anyway to fix the formatting of the xml or am I stuck doing exploits without a DB? Seems kind of odd that it would work with some people and not with others...
    Try exporting it in another format or use the following command:
    Code:
    db_import_nessus_xml
    Back|track giving machine guns to monkeys since 2007 !

    Do not read the Wiki, most your questions will not be answered there !
    Do not take a look at the: Forum Rules !

  7. #7
    Just burned his ISO
    Join Date
    Mar 2011
    Posts
    3

    Default Re: Problem with database

    It was originally exported as a OpenVAS .nbe file, which did not work in the same way as the .nessus. db_nmap works fine so I doubt it is a problem with the database, maybe just metasploits handling of the nessus xml format because don't OpenVAS and Nessus use the same engine for xml?

    Whats even more interesting is that when I tried to use the postgresql driver (I thought it might just be mysql at the time), it doesn't even build the base properly, any call after db_connect returns typical SQL errors...

Similar Threads

  1. MYSQL database Problem
    By CeEe4 in forum Beginners Forum
    Replies: 6
    Last Post: 04-03-2011, 04:39 PM
  2. Exploit database
    By av-35 in forum Beginners Forum
    Replies: 1
    Last Post: 02-19-2010, 07:33 PM
  3. pyrit database
    By Razack in forum Beginners Forum
    Replies: 1
    Last Post: 02-10-2010, 03:58 PM
  4. Book like "The Database Hacker's Handbook: Defending Database Servers"
    By -=Renegade=- in forum OLD General IT Discussion
    Replies: 3
    Last Post: 01-01-2010, 04:18 AM
  5. Problem with Aicrack after Database Airolib
    By manulu in forum OLD BackTrack 4 (pre) Final
    Replies: 0
    Last Post: 10-15-2009, 03:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •