Results 1 to 4 of 4

Thread: db_destroy not found?

  1. #1
    Member
    Join Date
    Apr 2010
    Posts
    51

    Default db_destroy not found?

    Hi guys. I've succesfully installed postgres sql for msf (I'm running updated BT R1). I sucesfully imported nessus scan results and I see that the db_hosts renamed to: hosts command! And also I saw that there is no db_destroy option? I only see:

    Command Description
    ------- -----------
    creds List all credentials in the database
    db_autopwn Automatically exploit everything
    db_connect Connect to an existing database
    db_disconnect Disconnect from the current database instance
    db_driver Specify a database driver
    db_export Export a file containing the contents of the database
    db_import Import a scan result file (filetype will be auto-detected)
    db_nmap Executes nmap and records the output automatically
    db_status Show the current database status
    hosts List all hosts in the database
    loot List all loot in the database
    notes List all notes in the database
    services List all services in the database
    vulns List all vulnerabilities in the database
    workspace Switch between database workspaces

    In the last metasploit these commands are deleted. So Is there a way to remove a host from db or to purge/remove db? without login in to postgres service?

    Thanks in advance
    Last edited by khaos; 10-29-2011 at 04:32 PM.

  2. #2
    Member
    Join Date
    Apr 2010
    Posts
    51

    Default Re: db_destroy not found?

    *bump* anyone to help?

    I'm trying to find out how to delete a db and some hosts from db
    Last edited by khaos; 10-29-2011 at 04:46 PM.

  3. #3
    Good friend of the forums zimmaro's Avatar
    Join Date
    Mar 2010
    Location
    milano
    Posts
    407

    Default Re: db_destroy not found?

    hi,
    if you can help?
    root@bt:~# msfconsole

    _---------.
    .' ####### ;."
    .---,. ;@ @@`; .---,..
    ." @@@@@'.,'@@ @@@@@',.'@@@@ ".
    '-.@@@@@@@@@@@@@ @@@@@@@@@@@@@ @;
    `.@@@@@@@@@@@@ @@@@@@@@@@@@@@ .'
    "--'.@@@ -.@ @ ,'- .'--"
    ".@' ; @ @ `. ;'
    |@@@@ @@@ @ .
    ' @@@ @@ @@ ,
    `.@@@@ @@ .
    ',@@ @ ; _____________
    ( 3 C ) /|___ / Metasploit! \
    ;@'. __*__,." \|--- \_____________/
    '(.,...."/


    =[ metasploit v4.1.1-release [core:4.1 api:1.0]
    + -- --=[ 754 exploits - 394 auxiliary - 104 post
    + -- --=[ 228 payloads - 27 encoders - 8 nops
    =[ svn r14096 updated today (2011.10.28)

    msf > db_driver postgresql[*] Using database driver postgresql
    msf > db_status[*] postgresql connected to msf3
    msf > hosts -h
    Usage: hosts [ options ] [addr1 addr2 ...]

    OPTIONS:
    -a,--add Add the hosts instead of searching
    -d,--delete Delete the hosts instead of searching
    -c <col1,col2> Only show the given columns (see list below)
    -h,--help Show this help information
    -u,--up Only show hosts which are up
    -o <file> Send output to a file in csv format
    -R,--rhosts Set RHOSTS from the results of the search

    Available columns: address, address6, arch, comm, comments, created_at, info, mac, name, os_flavor, os_lang, os_name, os_sp, purpose, state, updated_at
    msf > workspace
    * default
    ciao
    msf > workspace -h
    Usage:
    workspace List workspaces
    workspace [name] Switch workspace
    workspace -a [name] ... Add workspace(s)
    workspace -d [name] ... Delete workspace(s)
    workspace -h Show this help information
    bye!

  4. #4
    Member
    Join Date
    Apr 2010
    Posts
    51

    Default Re: db_destroy not found?

    Thank you mate :-) the metasploit changed some commands and I was confused ;S

Similar Threads

  1. Replies: 1
    Last Post: 06-21-2011, 05:36 PM
  2. BT4 Problem Acer, WIMD devices not found/No screens found
    By Mahatna in forum Beginners Forum
    Replies: 0
    Last Post: 02-17-2011, 03:44 PM
  3. WEP key found isn't the key I used?
    By eeepclover in forum Beginners Forum
    Replies: 4
    Last Post: 05-10-2010, 09:50 PM
  4. auto_pwn and db_destroy confusion
    By imported_bulgin in forum OLD Newbie Area
    Replies: 24
    Last Post: 11-21-2007, 10:51 PM
  5. Look what I've found
    By johnyt in forum OLD BackTrack v2.0 Final
    Replies: 18
    Last Post: 05-18-2007, 02:43 AM

Posting Permissions

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