Metasploit mailing list archives

msf3 on osx


From: madvillain at evilnerds.net (madvillain)
Date: Sun, 20 May 2007 15:39:20 +1000

hi

i seem to be having an issue using the autopwn functionality in msf3  
on osx.

a db_nmap of a single host scanning on a single port seems to work  
fine, but when I do a db_hosts or db_services, it seems to error;

msf > load db_sqlite3
[*] Successfully loaded plugin: db_sqlite3
msf > db_create metasploit
msf > db_nmap -p 445 127.0.0.1

Starting Nmap 4.20 ( http://insecure.org ) at 2007-05-20 15:37 EST
Interesting ports on localhost (127.0.0.1):
PORT    STATE  SERVICE
445/tcp closed microsoft-ds

Nmap finished: 1 IP address (1 host up) scanned in 0.153 seconds
msf > db_hosts
[-] Error while running command db_hosts: SQLite3::SQLException:  
unsupported file format: SELECT * FROM hosts

Call stack:
/sw/var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record/ 
connection_adapters/abstract_adapter.rb:128:in `log'
/sw/var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record/ 
connection_adapters/sqlite_adapter.rb:145:in `execute'
/sw/var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record/ 
connection_adapters/sqlite_adapter.rb:346:in `catch_schema_changes'
/sw/var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record/ 
connection_adapters/sqlite_adapter.rb:145:in `execute'
/sw/var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record/ 
connection_adapters/sqlite_adapter.rb:165:in `select_all'
/sw/var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record/ 
base.rb:427:in `find_by_sql'
/sw/var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record/ 
base.rb:997:in `find_every'
/sw/var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record/ 
base.rb:418:in `find'
./lib/msf/core/db_objects.rb:35:in `find'
/sw/lib/ruby/1.8/thread.rb:135:in `synchronize'
./lib/msf/core/db_objects.rb:34:in `find'
./lib/msf/core/db.rb:160:in `hosts'
./lib/msf/core/db.rb:151:in `each_host'
./lib/msf/ui/console/command_dispatcher/db.rb:45:in `cmd_db_hosts'
./lib/rex/ui/text/dispatcher_shell.rb:230:in `send'
./lib/rex/ui/text/dispatcher_shell.rb:230:in `run_command'
./lib/rex/ui/text/dispatcher_shell.rb:196:in `run_single'
./lib/rex/ui/text/dispatcher_shell.rb:191:in `each'
./lib/rex/ui/text/dispatcher_shell.rb:191:in `run_single'
./lib/rex/ui/text/shell.rb:125:in `run'
./msfconsole:77
msf >

If I try and db_nmap a subnet, it gives the error straight away

any ideas?





Current thread: