[framework] db_autopwn Problem: uninitialized constant Msf::Exploits::Test
Steve Bonds
j4wtllv02 at sneakemail.com
Mon Oct 2 00:58:31 CDT 2006
This is on a CentOS4 host (with updates) using the latest SVN version
of the framework 3.0.
Here's what I see when testing a single host (the database ERROR and
NOTICE lines are expected):
----
$ ./msfconsole
__. .__. .__. __.
_____ _____/ |______ ____________ | | ____ |__|/ |_
/ \_/ __ \ __\__ \ / ___/\____ \| | / _ \| \ __\
| Y Y \ ___/| | / __ \_\___ \ | |_> > |_( <_> ) || |
|__|_| /\___ >__| (____ /____ >| __/|____/\____/|__||__|
\/ \/ \/ \/ |__|
=[ msf v3.0-beta-dev
+ -- --=[ 104 exploits - 99 payloads
+ -- --=[ 17 encoders - 4 nops
=[ 13 aux
msf > load db_postgres
[*] Successfully loaded plugin: db_postgres
msf > db_create
DROP DATABASE
CREATE DATABASE
ERROR: table "hosts" does not exist
NOTICE: CREATE TABLE will create implicit sequence "hosts_id_seq" for
"serial" column "hosts.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index
"hosts_pkey" for table "hosts"
NOTICE: CREATE TABLE / UNIQUE will create implicit index
"hosts_address_key" for table "hosts"
ERROR: table "services" does not exist
NOTICE: CREATE TABLE will create implicit sequence "services_id_seq"
for "serial" column "services.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index
"services_pkey" for table "services"
ERROR: table "vulns" does not exist
NOTICE: CREATE TABLE will create implicit sequence "vulns_id_seq" for
"serial" column "vulns.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index
"vulns_pkey" for table "vulns"
ERROR: table "refs" does not exist
NOTICE: CREATE TABLE will create implicit sequence "refs_id_seq" for
"serial" column "refs.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index
"refs_pkey" for table "refs"
ERROR: table "vulns_refs" does not exist
msf > db_nmap -p 445 172.29.44.129/32
Starting nmap 3.70 ( http://www.insecure.org/nmap/ ) at 2006-10-01 22:52 PDT
Interesting ports on 172.29.44.129:
PORT STATE SERVICE
445/tcp open microsoft-ds
Nmap run completed -- 1 IP address (1 host up) scanned in 0.206 seconds
msf > db_services
[*] Service: host=172.29.44.129 port=445 proto=tcp state=up name=microsoft-ds
msf > db_autopwn -t -p
[-] Error while running command db_autopwn: uninitialized constant
Msf::Exploits::Test
Call stack:
./lib/msf/core/module_manager.rb:890:in `load_module_from_file'
./lib/msf/core/module_manager.rb:711:in `demand_load_module'
./lib/msf/core/module_manager.rb:708:in `each_with_index'
./lib/msf/core/module_manager.rb:708:in `each'
./lib/msf/core/module_manager.rb:708:in `each_with_index'
./lib/msf/core/module_manager.rb:708:in `demand_load_module'
./lib/msf/core/module_manager.rb:86:in `create'
./lib/msf/core/module_manager.rb:173:in `demand_load_modules'
./lib/msf/core/module_manager.rb:169:in `each_pair'
./lib/msf/core/module_manager.rb:169:in `demand_load_modules'
./lib/msf/core/module_manager.rb:119:in `each_module'
./lib/msf/ui/console/command_dispatcher/db.rb:133:in `cmd_db_autopwn'
./lib/msf/ui/console/command_dispatcher/db.rb:131:in `each'
./lib/msf/ui/console/command_dispatcher/db.rb:131:in `cmd_db_autopwn'
./lib/rex/ui/text/dispatcher_shell.rb:229:in `send'
./lib/rex/ui/text/dispatcher_shell.rb:229: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:118:in `run'
./msfconsole:63
msf >
-----
I'm not sure quite what the "Error while running command db_autopwn:
uninitialized constant Msf::Exploits::Test" is trying to tell me. Any
thoughts?
-- Steve
More information about the framework
mailing list