help: msfconsole error
#1
Bug 
msfconsole
[-] Failed to connect to the database: PGError: ERROR: relation "workspaces" does not exist
LINE 4: WHERE a.attrelid = '"workspaces"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"workspaces"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
{"adapter"=>"postgresql", "database"=>"msf3dev", "username"=>"msf3", "password"=>"20394965", "port"=>7337, "host"=>"localhost", "pool"=>256, "timeout"=>5} ["/opt/metasploit/ruby/lib/ruby/gems/1.9.1/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract_adapter.rb:219:in `rescue in log'", "/opt/metasploit/ruby/lib/ruby/gems/1.9.1/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract_adapter.rb:202:in `log'", "/opt/metasploit/ruby/lib/ruby/gems/1.9.1/gems/activerecord-2.3.5/lib/active_record/connection_adapters/postgresql_adapter.rb:537:in `query'", "/opt/metasploit/ruby/lib/ruby/gems/1.9.1/gems/activerecord-2.3.5/lib/active_record/connection_adapters/postgresql_adapter.rb:1098:in `column_definitions'", "/opt/metasploit/ruby/lib/ruby/gems/1.9.1/gems/activerecord-2.3.5/lib/active_record/connection_adapters/postgresql_adapter.rb:705:in `columns'", "/opt/metasploit/ruby/lib/ruby/gems/1.9.1/gems/activerecord-2.3.5/lib/active_record/base.rb:1271:in `columns'", "/opt/metasploit/ruby/lib/ruby/gems/1.9.1/gems/activerecord-2.3.5/lib/active_record/base.rb:1284:in `column_names'", "/opt/metasploit/ruby/lib/ruby/gems/1.9.1/gems/activerecord-2.3.5/lib/active_record/base.rb:1297:in `column_methods_hash'", "/opt/metasploit/ruby/lib/ruby/gems/1.9.1/gems/activerecord-2.3.5/lib/active_record/base.rb:1986:in `block in all_attributes_exists?'", "/opt/metasploit/ruby/lib/ruby/gems/1.9.1/gems/activerecord-2.3.5/lib/active_record/base.rb:1986:in `each'", "/opt/metasploit/ruby/lib/ruby/gems/1.9.1/gems/activerecord-2.3.5/lib/active_record/base.rb:1986:in `all?'", "/opt/metasploit/ruby/lib/ruby/gems/1.9.1/gems/activerecord-2.3.5/lib/active_record/base.rb:1986:in `all_attributes_exists?'", "/opt/metasploit/ruby/lib/ruby/gems/1.9.1/gems/activerecord-2.3.5/lib/active_record/base.rb:1842:in `method_missing'", "/opt/metasploit/msf3/lib/msf/core/model/workspace.rb:70:in `default'", "/opt/metasploit/msf3/lib/msf/core/db.rb:197:in `default_workspace'", "/opt/metasploit/msf3/lib/msf/core/db_manager.rb:161:in `connect'", "/opt/metasploit/msf3/lib/msf/ui/console/driver.rb:195:in `initialize'", "/opt/metasploit/msf3/msfconsole:134:in `new'", "/opt/metasploit/msf3/msfconsole:134:in `<main>'"]


Call trans opt: received. 2-19-98 13:24:18 REC:Loc

Trace program: running

wake up, Neo...
the matrix has you
follow the white rabbit.

knock, knock, Neo.

(`. ,-,
` `. ,;' /
`. ,'/ .'
`. X /.'
.-;--''--.._` ` (
.' / `
, ` ' Q '
, , `._ \
,.| ' `-.;_'
: . ` ; ` ` --,.._;
' ` , ) .'
`._ , ' /_
; ,''-,;' ``-
``-..__``--`


=[ metasploit v4.2.0-release [core:4.2 api:1.0]
+ -- --=[ 805 exploits - 451 auxiliary - 135 post
+ -- --=[ 246 payloads - 27 encoders - 8 nops
=[ svn r15667 updated 165 days ago (2012.02.23)

Warning: This copy of the Metasploit Framework was last updated 165 days ago.
We recommend that you update the framework at least every other day.
For information on updating your copy of Metasploit, please see:
https://community.rapid7.com/docs/DOC-1306

msf >

#2
jelas kan in masalah nya apa om,,error metasploit sudah banyak dibahas disini Angry searching please!

#3
masalahe yang hijau itu om biar gk ada hijaunya itu gmna?
soale ntar xlo di run error

begitu om junior

#4
coba update dulu aja om
[shcode=This_site_xss-ed]

#5
masalah didatabase nya dicek databasenya udah fix?
udah up?servicenya jalan? atau malah g ada? disni ada contoh error2 database ,
bisa jg coba update duu

#6
iya bener update aja dulu

dari list error diatas aneh, soalnya metasploit versi 4.20 tetapi folder untuk koneksi ke postgresnya masih msf3 dan port 7337, untuk metasploit versi 4 keatas itu foldernya framework dan port postgresnya 7175

sepertinya harus install postgres via gem ruby dulu:
Code:
sudo gem install pg






Users browsing this thread: 1 Guest(s)