-
Metasploit errors
root@bt:~# msfconsole
[-] WARNING! The following modules could not be loaded!
[-] /opt/framework-3.7.0/msf3/modules/auxiliary/scanner/smtp/smtp_enum.rb: SyntaxError (eval):186: syntax error, unexpected ',', expecting ')'
when (500..549, (551..599)
^
(eval):190: syntax error, unexpected keyword_when, expecting ')'
when (250..259)
^
(eval):197: syntax error, unexpected keyword_end, expecting ')'
(eval):228: syntax error, unexpected keyword_end, expecting ')'
888 888 d8b888
888 888 Y8P888
888 888 888
88888b.d88b. .d88b. 888888 8888b. .d8888b 88888b. 888 .d88b. 888888888
888 "888 "88bd8P Y8b888 "88b88K 888 "88b888d88""88b888888
888 888 88888888888888 .d888888"Y8888b.888 888888888 888888888
888 888 888Y8b. Y88b. 888 888 X88888 d88P888Y88..88P888Y88b.
888 888 888 "Y8888 "Y888"Y888888 88888P'88888P" 888 "Y88P" 888 "Y888
888
888
888
=[ metasploit v3.7.1-release [core:3.7 api:1.0]
+ -- --=[ 688 exploits - 357 auxiliary - 39 post
+ -- --=[ 217 payloads - 27 encoders - 8 nops
=[ svn r12641 updated today (2011.05.16)
msf > db_create database
[-]
[-] Warning: The db_create command is deprecated, use db_connect instead.
[-] The database and schema will be created automatically by
[-] db_connect. If db_connect fails to create the database, create
[-] it manually with your DBMS's administration tools.
[-]
Password:
Password:
createdb.bin: could not connect to database postgres: FATAL: password authentication failed for user "postgres"
[-] Error while running command db_create: Failed to connect to the database: FATAL: Ident authentication failed for user "postgres"
Call stack:
/opt/framework-3.7.0/msf3/lib/msf/ui/console/command_dispatcher/db.rb:2118:in `db_create_postgresql'
/opt/framework-3.7.0/msf3/lib/msf/ui/console/command_dispatcher/db.rb:1687:in `cmd_db_create'
/opt/framework-3.7.0/msf3/lib/rex/ui/text/dispatcher_shell.rb:376:in `run_command'
/opt/framework-3.7.0/msf3/lib/rex/ui/text/dispatcher_shell.rb:338:in `block in run_single'
/opt/framework-3.7.0/msf3/lib/rex/ui/text/dispatcher_shell.rb:332:in `each'
/opt/framework-3.7.0/msf3/lib/rex/ui/text/dispatcher_shell.rb:332:in `run_single'
/opt/framework-3.7.0/msf3/lib/rex/ui/text/shell.rb:143:in `run'
/opt/framework-3.7.0/msf3/msfconsole:130:in `<main>'
this is the version that comes with backtrack 5 and was updated yesterday using the metasploit updater. i am aware that there are multiple errors and i have no idea what to to fix them.
-
Re: Metasploit errors
Updated to 3.7.1 this morning and haven't seen this issue at all. Also, the db_create command has been deprecated for more than a year now. So what have you done to try to fix the problem? Googled? Asked a listserv? Tried to fix it yourself?
-
Re: Metasploit errors
How did you update to version 3.7.1?
-
Re: Metasploit errors
i'm aware that the db_create command isnt used anymore but the db_connect gives almost the same error
msf > db_connect database
[-] Error while running command db_connect: Failed to connect to the database: FATAL: Ident authentication failed for user "root"
Call stack:
/opt/framework-3.7.0/msf3/lib/msf/ui/console/command_dispatcher/db.rb:2028:in `db_connect_postgresql'
/opt/framework-3.7.0/msf3/lib/msf/ui/console/command_dispatcher/db.rb:1731:in `cmd_db_connect'
/opt/framework-3.7.0/msf3/lib/rex/ui/text/dispatcher_shell.rb:376:in `run_command'
/opt/framework-3.7.0/msf3/lib/rex/ui/text/dispatcher_shell.rb:338:in `block in run_single'
/opt/framework-3.7.0/msf3/lib/rex/ui/text/dispatcher_shell.rb:332:in `each'
/opt/framework-3.7.0/msf3/lib/rex/ui/text/dispatcher_shell.rb:332:in `run_single'
/opt/framework-3.7.0/msf3/lib/rex/ui/text/shell.rb:143:in `run'
/opt/framework-3.7.0/msf3/msfconsole:130:in `<main>'
msf >
it seems as if no user can authenticate.
-
Re: Metasploit errors
i have same error too.....
http://www.backtrack-linux.org/forum...ostgresql.html
http://epichacktime.com/blog/metaspl...sstartupissue/
can help, but.....
i get error too:
Code:
[-] Failed to connect to the database: could not connect to server: Connection refused
Is the server running on host "127.0.0.1" and accepting
TCP/IP connections on port 7175?
{"adapter"=>"postgresql", "database"=>"msf3", "username"=>"msf3", "password"=>"6a794a78", "host"=>"127.0.0.1", "port"=>7175, "pool"=>75, "timeout"=>5} ["/opt/framework3/msf3/lib/active_record/connection_adapters/postgresql_adapter.rb:968:in `initialize'", "/opt/framework3/msf3/lib/active_record/connection_adapters/postgresql_adapter.rb:968:in `new'", "/opt/framework3/msf3/lib/active_record/connection_adapters/postgresql_adapter.rb:968:in `connect'", "/opt/framework3/msf3/lib/active_record/connection_adapters/postgresql_adapter.rb:217:in `initialize'", "/opt/framework3/msf3/lib/active_record/connection_adapters/postgresql_adapter.rb:37:in `new'", "/opt/framework3/msf3/lib/active_record/connection_adapters/postgresql_adapter.rb:37:in `postgresql_connection'", "/opt/framework3/msf3/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in `new_connection'", "/opt/framework3/msf3/lib/active_record/connection_adapters/abstract/connection_pool.rb:245:in `checkout_new_connection'", "/opt/framework3/msf3/lib/active_record/connection_adapters/abstract/connection_pool.rb:188:in `block (2 levels) in checkout'", "/opt/framework3/msf3/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `loop'", "/opt/framework3/msf3/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `block in checkout'", "/opt/framework3/ruby/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'", "/opt/framework3/msf3/lib/active_record/connection_adapters/abstract/connection_pool.rb:183:in `checkout'", "/opt/framework3/msf3/lib/active_record/connection_adapters/abstract/connection_pool.rb:98:in `connection'", "/opt/framework3/msf3/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in `retrieve_connection'", "/opt/framework3/msf3/lib/active_record/connection_adapters/abstract/connection_specification.rb:123:in `retrieve_connection'", "/opt/framework3/msf3/lib/active_record/connection_adapters/abstract/connection_specification.rb:115:in `connection'", "/opt/framework3/msf3/lib/active_record/base.rb:1271:in `columns'", "/opt/framework3/msf3/lib/active_record/base.rb:1284:in `column_names'", "/opt/framework3/msf3/lib/active_record/base.rb:1297:in `column_methods_hash'", "/opt/framework3/msf3/lib/active_record/base.rb:1986:in `block in all_attributes_exists?'", "/opt/framework3/msf3/lib/active_record/base.rb:1986:in `each'", "/opt/framework3/msf3/lib/active_record/base.rb:1986:in `all?'", "/opt/framework3/msf3/lib/active_record/base.rb:1986:in `all_attributes_exists?'", "/opt/framework3/msf3/lib/active_record/base.rb:1842:in `method_missing'", "/opt/framework3/msf3/lib/msf/core/model/workspace.rb:29:in `default'", "/opt/framework3/msf3/lib/msf/core/db.rb:188:in `default_workspace'", "/opt/framework3/msf3/lib/msf/core/db_manager.rb:166:in `connect'", "/opt/framework3/msf3/lib/msf/ui/console/driver.rb:181:in `initialize'", "/opt/framework3/msf3/msfconsole:130:in `new'", "/opt/framework3/msf3/msfconsole:130:in `<main>'"]
HELP! BT5 seems to be full of bugs xD