[FIXED] ada pesan error waktu buka msfconsole??
#1
Sad 
Angry maaf kk,nube belum bisa share tutor tapi banyak nanya mulu ..
==========================================
jadi waktu saya ketik "msfconsole" ada pesan seperti ini kk

root@kakus130908:~# msfconsole
[-] 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"=>"3e686744", "host"=>"127.0.0.1", "port"=>7175, "pool"=>75, "timeout"=>5} ["/opt/framework/msf3/lib/active_record/connection_adapters/postgresql_adapter.rb:968:in `initialize'", "/opt/framework/msf3/lib/active_record/connection_adapters/postgresql_adapter.rb:968:in `new'", "/opt/framework/msf3/lib/active_record/connection_adapters/postgresql_adapter.rb:968:in `connect'", "/opt/framework/msf3/lib/active_record/connection_adapters/postgresql_adapter.rb:217:in `initialize'", "/opt/framework/msf3/lib/active_record/connection_adapters/postgresql_adapter.rb:37:in `new'", "/opt/framework/msf3/lib/active_record/connection_adapters/postgresql_adapter.rb:37:in `postgresql_connection'", "/opt/framework/msf3/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in `new_connection'", "/opt/framework/msf3/lib/active_record/connection_adapters/abstract/connection_pool.rb:245:in `checkout_new_connection'", "/opt/framework/msf3/lib/active_record/connection_adapters/abstract/connection_pool.rb:188:in `block (2 levels) in checkout'", "/opt/framework/msf3/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `loop'", "/opt/framework/msf3/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `block in checkout'", "/opt/framework/ruby/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'", "/opt/framework/msf3/lib/active_record/connection_adapters/abstract/connection_pool.rb:183:in `checkout'", "/opt/framework/msf3/lib/active_record/connection_adapters/abstract/connection_pool.rb:98:in `connection'", "/opt/framework/msf3/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in `retrieve_connection'", "/opt/framework/msf3/lib/active_record/connection_adapters/abstract/connection_specification.rb:123:in `retrieve_connection'", "/opt/framework/msf3/lib/active_record/connection_adapters/abstract/connection_specification.rb:115:in `connection'", "/opt/framework/msf3/lib/active_record/base.rb:1271:in `columns'", "/opt/framework/msf3/lib/active_record/base.rb:1284:in `column_names'", "/opt/framework/msf3/lib/active_record/base.rb:1297:in `column_methods_hash'", "/opt/framework/msf3/lib/active_record/base.rb:1986:in `block in all_attributes_exists?'", "/opt/framework/msf3/lib/active_record/base.rb:1986:in `each'", "/opt/framework/msf3/lib/active_record/base.rb:1986:in `all?'", "/opt/framework/msf3/lib/active_record/base.rb:1986:in `all_attributes_exists?'", "/opt/framework/msf3/lib/active_record/base.rb:1842:in `method_missing'", "/opt/framework/msf3/lib/msf/core/model/workspace.rb:69:in `default'", "/opt/framework/msf3/lib/msf/core/db.rb:189:in `default_workspace'", "/opt/framework/msf3/lib/msf/core/db_manager.rb:166:in `connect'", "/opt/framework/msf3/lib/msf/ui/console/driver.rb:186:in `initialize'", "/opt/framework/msf3/msfconsole:130:in `new'", "/opt/framework/msf3/msfconsole:130:in `<main>'"]

######## #
################# #
###################### #
######################### #
############################
##############################
###############################
###############################
##############################
# ######## #
## ### #### ##
### ###
#### ###
#### ########## ####
####################### ####
#################### ####
################## ####
############ ##
######## ###
######### #####
############ ######
######## #########
##### ########
### #########
###### ############
#######################
# # ### # # ##
########################
## ## ## ##



=[ metasploit v4.0.1-dev [core:4.0 api:1.0]
+ -- --=[ 745 exploits - 382 auxiliary - 92 post
+ -- --=[ 228 payloads - 27 encoders - 8 nops
=[ svn r13913 updated today (2011.10.13)

msf >
===================================================
mohon pencerahannya kk Big Grin
===================================================

#2
[-] Failed to connect to the database: could not connect to server: Connection refused
Mungkin masalah mengenai database.

Coba cara forum.indonesianbacktrack.or.id/showthread.php?tid=181
Yang putih, yang seharusnya ber-aksi dan berbakat!
Linuxtivist blog

#3
udah saya coba kk
=====================
root@kakus130908:~# sudo su postgres -c psql ALTER USER postgres WITH PASSWORD ‘ ’;
could not change directory to "/root"
psql (8.4.8)
Type "help" for help.

postgres=# \q
could not save history to file "/home/postgres/.psql_history": No such file or directory
root@kakus130908:~#
==============================================
tapi ada kaya gitu,apa ada file yang ke hapus gitu ya???

#4
g apa" itu, punya ane kya gitu.. lnjutin ja command selanjutnya...
Hacking isn't just Computers & Exploits. It's a Philosophy.

#5
Kalau ane mke cara kaya ginian om..
Code:
root@bt:~# sudo su postgres -c psql
could not change directory to "/root"
psql (8.4.8)
Type "help" for help.

postgres=# ALTER USER postgres WITH PASSWORD 'masukin password ente ( ane mke password default toor )'

jika sudah benar bakalan muncul tulisan ALTER ROLE
selanjutnya
Code:
postgres=#\q

seterusnya..
Code:
root@bt:~# sudo su postgres -c passwd

silahkan masukin password baru atau pke password lama juga boleh
habis itu..
Code:
root@bt:~# gem install pg

selesai install jalanin aja langsung msfconsole
Code:
root@bt:~# msfconsole

tunggu hingga msfconsole muncul,bila sudah muncul cek db_driver yg aktif
Code:
msf>db_driver

Semoga membantuSmile:apn:

#6
itu error karena gk ada database terkonek doang... tapi tetep bisa di pakai itu buat pentest... klo untuk autopwn pasti masih error memang ... tapi di forum ini udah ada fixnya kok

#7
coba ikuti cara ini om :
http://forum.indonesianbacktrack.or.id/s...base+mysql
[shcode=This_site_xss-ed]

#8
makasih kk semua... maslah sudah teratasi Big Grin

#9
om,, tolong bantu ane,,,


root@bt:~# msfconsole
Spoiler! :

/opt/metasploit/msf3/lib/active_support/dependencies.rb:429:in `rescue in load_missing_constant': uninitialized constant ActiveSupport::Multibyte::Chars (NameError)
from /opt/metasploit/msf3/lib/active_support/dependencies.rb:425:in `load_missing_constant'
from /opt/metasploit/msf3/lib/active_support/dependencies.rb:80:in `const_missing_with_dependencies'
from /opt/metasploit/msf3/lib/msf/core/model/activerecord_patches.rb:34:in `quote'
from /opt/metasploit/msf3/lib/active_record/connection_adapters/postgresql_adapter.rb:391:in `quote'
from /opt/metasploit/msf3/lib/active_record/base.rb:2992:in `block in attributes_with_quotes'
from /opt/metasploit/msf3/lib/active_record/base.rb:2983:in `each'
from /opt/metasploit/msf3/lib/active_record/base.rb:2983:in `attributes_with_quotes'
from /opt/metasploit/msf3/lib/active_record/base.rb:2898:in `create'
from /opt/metasploit/msf3/lib/active_record/timestamp.rb:53:in `create_with_timestamps'
from /opt/metasploit/msf3/lib/active_record/callbacks.rb:266:in `create_with_callbacks'
from /opt/metasploit/msf3/lib/active_record/base.rb:2874:in `create_or_update'
from /opt/metasploit/msf3/lib/active_record/callbacks.rb:250:in `create_or_update_with_callbacks'
from /opt/metasploit/msf3/lib/active_record/base.rb:2538:in `save'
from /opt/metasploit/msf3/lib/active_record/validations.rb:1077:in `save_with_validation'
from /opt/metasploit/msf3/lib/active_record/dirty.rb:79:in `save_with_dirty'
from /opt/metasploit/msf3/lib/active_record/transactions.rb:229:in `block in with_transaction_returning_status'
from /opt/metasploit/msf3/lib/active_record/connection_adapters/abstract/database_statements.rb:136:in `transaction'
from /opt/metasploit/msf3/lib/active_record/transactions.rb:182:in `transaction'
from /opt/metasploit/msf3/lib/active_record/transactions.rb:228:in `with_transaction_returning_status'
from /opt/metasploit/msf3/lib/active_record/transactions.rb:196:in `block in save_with_transactions'
from /opt/metasploit/msf3/lib/active_record/transactions.rb:208:in `rollback_active_record_state!'
from /opt/metasploit/msf3/lib/active_record/transactions.rb:196:in `save_with_transactions'
from /opt/metasploit/msf3/lib/active_record/base.rb:723:in `create'
from /opt/metasploit/msf3/lib/msf/core/db.rb:1295:in `report_event'
from /opt/metasploit/msf3/lib/msf/core/framework.rb:221:in `report_event'
from /opt/metasploit/msf3/lib/msf/core/framework.rb:278:in `on_ui_start'
from /opt/metasploit/msf3/lib/msf/core/event_dispatcher.rb:182:in `block in method_missing'
from /opt/metasploit/msf3/lib/msf/core/event_dispatcher.rb:180:in `each'
from /opt/metasploit/msf3/lib/msf/core/event_dispatcher.rb:180:in `method_missing'
from /opt/metasploit/msf3/lib/msf/ui/console/driver.rb:489:in `on_startup'
from /opt/metasploit/msf3/lib/msf/ui/console/driver.rb:204:in `initialize'
from /opt/metasploit/msf3/msfconsole:134:in `new'
from /opt/metasploit/msf3/msfconsole:134:in `<main>'


#10
kalo saya kuy gini om.. msfconsole lalu keluar kyk gni :
/opt/metasploit/msf3/lib/fastlib.rb:371:in `require': no such file to load -- active_support/concern (LoadError)
from /opt/metasploit/msf3/lib/fastlib.rb:371:in `require'
from /opt/metasploit/msf3/lib/msf/core/module_manager/cache.rb:4:in `<top (required)>'
from /opt/metasploit/msf3/lib/fastlib.rb:371:in `require'
from /opt/metasploit/msf3/lib/fastlib.rb:371:in `require'
from /opt/metasploit/msf3/lib/msf/core/module_manager.rb:23:in `<class:ModuleManager>'
from /opt/metasploit/msf3/lib/msf/core/module_manager.rb:19:in `<module:Msf>'
from /opt/metasploit/msf3/lib/msf/core/module_manager.rb:14:in `<top (required)>'
from /opt/metasploit/msf3/lib/fastlib.rb:371:in `require'
from /opt/metasploit/msf3/lib/fastlib.rb:371:in `require'
from /opt/metasploit/msf3/lib/msf/core/framework.rb:66:in `<class:Framework>'
from /opt/metasploit/msf3/lib/msf/core/framework.rb:13:in `<module:Msf>'
from /opt/metasploit/msf3/lib/msf/core/framework.rb:5:in `<top (required)>'
from /opt/metasploit/msf3/lib/fastlib.rb:371:in `require'
from /opt/metasploit/msf3/lib/fastlib.rb:371:in `require'
from /opt/metasploit/msf3/lib/msf/core.rb:34:in `<top (required)>'
from /opt/metasploit/msf3/lib/fastlib.rb:371:in `require'
from /opt/metasploit/msf3/lib/fastlib.rb:371:in `require'
from /opt/metasploit/msf3/lib/msf/ui/console/driver.rb:2:in `<top (required)>'
from /opt/metasploit/msf3/lib/fastlib.rb:371:in `require'
from /opt/metasploit/msf3/lib/fastlib.rb:371:in `require'
from /opt/metasploit/msf3/lib/msf/ui/console.rb:11:in `<top (required)>'
from /opt/metasploit/msf3/lib/fastlib.rb:371:in `require'
from /opt/metasploit/msf3/lib/fastlib.rb:371:in `require'
from /opt/metasploit/msf3/lib/msf/ui.rb:11:in `<top (required)>'
from /opt/metasploit/msf3/lib/fastlib.rb:371:in `require'
from /opt/metasploit/msf3/lib/fastlib.rb:371:in `require'
from /opt/metasploit/msf3/msfconsole:122:in `<main>'






Users browsing this thread: 1 Guest(s)