*bump* anyone to help?
I'm trying to find out how to delete a db and some hosts from db
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.
*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.
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!![]()
Thank you mate :-) the metasploit changed some commands and I was confused ;S