Results 1 to 9 of 9

Thread: Advice: Getting data out of Metasploit DB

  1. #1
    Just burned his ISO
    Join Date
    Dec 2010
    Posts
    23

    Default Advice: Getting data out of Metasploit DB

    Morning

    I would really appreciate some advice as to the best way to get data out of Metasploit? I have some really useful data in it which I can get to using the db_hosts, etc. but now I need to take it out to reformat for a report.

    I know there's an export, but it doesn't export all information. I'd really appreciate someone with more experience explainng what approach he/she takes, etc. / any help.

    Regards

  2. #2
    Member
    Join Date
    Feb 2010
    Posts
    78

    Default Re: Advice: Getting data out of Metasploit DB

    It isn't a matter of getting the data out of Metasploit, it's a matter of getting the data out of your database. Just go open up your database outside of Metasploit and have at it.
    Computer security is a temporary condition.

  3. #3
    My life is this forum thorin's Avatar
    Join Date
    Jan 2010
    Posts
    2,629

    Default Re: Advice: Getting data out of Metasploit DB

    Learn SQL.
    I'm a compulsive post editor, you might wanna wait until my post has been online for 5-10 mins before quoting it as it will likely change.

    I know I seem harsh in some of my replies. SORRY! But if you're doing something illegal or posting something that seems to be obvious BS I'm going to call you on it.

  4. #4
    Just burned his ISO
    Join Date
    Dec 2010
    Posts
    23

    Default Re: Advice: Getting data out of Metasploit DB

    Thanks for the really unhelpful response.

    I know I can take the database and query it directly - that goes without saying. What I was asking for was anything that's already in place to make life quick and easy, just like Metasploit. This is supposed to be a beginners forum so you shouldn't be surprised by questions like this.

  5. #5
    Super Moderator Archangel-Amael's Avatar
    Join Date
    Jan 2010
    Location
    Somewhere
    Posts
    8,012

    Default Re: Advice: Getting data out of Metasploit DB

    I would suggest you check out the metasploit unleashed documentation. There is plenty of info on how to work with the info in the db's you create.
    To be successful here you should read all of the following.
    ForumRules
    ForumFAQ
    If you are new to Back|Track
    Back|Track Wiki
    Failure to do so will probably get your threads deleted or worse.

  6. #6
    My life is this forum thorin's Avatar
    Join Date
    Jan 2010
    Posts
    2,629

    Default Re: Advice: Getting data out of Metasploit DB

    Quote Originally Posted by Quartercask View Post
    Thanks for the really unhelpful response.

    I know I can take the database and query it directly - that goes without saying. What I was asking for was anything that's already in place to make life quick and easy, just like Metasploit. This is supposed to be a beginners forum so you shouldn't be surprised by questions like this.
    I wasn't surprised hence my answer. Learning SQL to pull info directly from the DB seems like the easiest solution, then you can do exactly what you want with it.

    I'm not really sure how you expect to get data out of the DB if you don't want to use SQL. Perhaps you're looking for another GUI that can manipulate it, I dunno.

    You could simply work with the raw tool output files (i.e.: the files from nmap, etc) with any number of open source and public tools (check google) or use python (or similar) to write your own parser.

    Without knowing what data you have, what data you need, and in what format you need it we're not really in a good position to offer anything more complete.

    As the lack of details currently stand I'll suggest that perhaps Armitage could help you.....but that's a shot in the dark.
    I'm a compulsive post editor, you might wanna wait until my post has been online for 5-10 mins before quoting it as it will likely change.

    I know I seem harsh in some of my replies. SORRY! But if you're doing something illegal or posting something that seems to be obvious BS I'm going to call you on it.

  7. #7
    Just burned his ISO
    Join Date
    Dec 2010
    Posts
    23

    Default Re: Advice: Getting data out of Metasploit DB

    Thanks, I appreciate the suggestions.

    I've since found I can query mysql direct from BT so problem solved.

    Thanks again

  8. #8
    Junior Member
    Join Date
    Jan 2010
    Posts
    35

    Default Re: Advice: Getting data out of Metasploit DB

    I have used iReports (http://jasperforge.org) in the past, part of the jasperserver and jasperreports software. I stumbled on it from using OSSIM, they use it to report from the MySQL db that they use. I've always wanted to play around with creating some reports from the Metasploit DB, but never have had the time to do it. You should be able to install iReports without the jasperServer to create and export reports.

    If you are so inclined to do so, give it a shot and let me know how it works....

  9. #9
    Just burned his ISO
    Join Date
    Jan 2010
    Location
    PA
    Posts
    9

    Default Re: Advice: Getting data out of Metasploit DB

    This site may help some one http://en.wikibooks.org/wiki/Metasploit/UsingMetasploit

    Also dont forget to install phpmyadmin

    apt-get install phpmyadmin
    choose apache2

    /etc/init.d/apache2 start

    /etc/init.d/mysql start
    127.0.0.1/phpmyadmin on your browser and login
    login root
    pass toor
    To access you database (Metasploit)
    you can do all this from command which i recommend...(Plain Fun)

Similar Threads

  1. A Little Help-Advice Please
    By Stan464 in forum OLD Newbie Area
    Replies: 5
    Last Post: 07-21-2009, 02:23 PM
  2. need some advice
    By wesmagyar in forum OLD Programming
    Replies: 14
    Last Post: 05-22-2009, 01:58 PM
  3. I need an advice
    By Ordismlialm in forum OLD General IT Discussion
    Replies: 8
    Last Post: 04-03-2009, 05:10 PM
  4. I need advice plz
    By crack my back in forum OLD Newbie Area
    Replies: 2
    Last Post: 01-02-2009, 08:36 AM
  5. Advice please.....
    By shopowner in forum OLD Newbie Area
    Replies: 19
    Last Post: 09-21-2007, 06:48 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
  •