Çözüldü Arch Linux Metasploit: msfdb init sorunu

Bu konu çözüldü olarak işaretlenmiştir. Çözülmediğini düşünüyorsanız konuyu rapor edebilirsiniz.
Katılım
22 Ocak 2019
Mesajlar
2.893
Makaleler
54
Çözümler
25
Yer
@bluebard
Metasploit kurdum, database oluşturmaya çalışıyorum. Postgresql de kurdum aynı şekilde,
Kod:
msfdb init
yazdığımda şu çıktıyı alıyorum.
/home/van_hox/.rvm/gems/ruby-2.7.1/gems/bundler-1.17.3/lib/bundler/rubygems_integration.rb:200: warning: constant Gem::ConfigMap is deprecated /home/van_hox/.rvm/gems/ruby-2.7.1/gems/bundler-1.17.3/lib/bundler/rubygems_integration.rb:200: warning: constant Gem::ConfigMap is deprecated [?] Would you like to delete your existing data and configurations?: no Found a database at /home/van_hox/.msf4/db, checking to see if it is started Starting database at /home/van_hox/.msf4/db...failed 2020-08-16 11:57:46.922 +03 [5881] LOG: database system is shut down [!] Your database may be corrupt. Try reinitializing.
Bunu debug parametresiyle çalıştırdığımda da şu çıktıyı alıyorum;
/home/van_hox/.rvm/gems/ruby-2.7.1/gems/bundler-1.17.3/lib/bundler/rubygems_integration.rb:200: warning: constant Gem::ConfigMap is deprecated /home/van_hox/.rvm/gems/ruby-2.7.1/gems/bundler-1.17.3/lib/bundler/rubygems_integration.rb:200: warning: constant Gem::ConfigMap is deprecated [?] Would you like to delete your existing data and configurations?: no Found a database at /home/van_hox/.msf4/db, checking to see if it is started run_cmd: cmd=pg_ctl -o "-p 5433" -D /home/van_hox/.msf4/db status, input=, env={} 'pg_ctl -o "-p 5433" -D /home/van_hox/.msf4/db status' returned 3 pg_ctl: no server running Starting database at /home/van_hox/.msf4/db...run_cmd: cmd=pg_ctl -o "-p 5433" -D /home/van_hox/.msf4/db -l /home/van_hox/.msf4/db/log start, input=, env={} 'pg_ctl -o "-p 5433" -D /home/van_hox/.msf4/db -l /home/van_hox/.msf4/db/log start' returned 1 waiting for server to start.... stopped waiting pg_ctl: could not start server Examine the log output. run_cmd: cmd=pg_ctl -o "-p 5433" -D /home/van_hox/.msf4/db status, input=, env={} 'pg_ctl -o "-p 5433" -D /home/van_hox/.msf4/db status' returned 3 pg_ctl: no server running failed 2020-08-16 11:59:59.323 +03 [5909] LOG: database system is shut down [!] Your database may be corrupt. Try reinitializing.
Debug ile reinit ettiğimde de şu şekilde localhost offline gözüküyor anladığım kadarıyla;
Attempting to start MSF web service...run_cmd: cmd=thin --rackup /opt/metasploit-git/msf-ws.ru --address localhost --port 5443 --ssl --ssl-key-file /home/van_hox/.msf4/msf-ws-key.pem --ssl-cert-file /home/van_hox/.msf4/msf-ws-cert.pem --ssl-disable-verify --environment production --daemonize --log /home/van_hox/.msf4/logs/msf-ws.log --pid /home/van_hox/.msf4/msf-ws.pid --tag msf-ws start, input=, env={} Problem with HTTP get request /api/v1/msf/version, message: Failed to open TCP connection to localhost:5443 (Connection refused - connect(2) for "localhost" port 5443) web_service_online: expect_auth=false, response_msg={:response=>nil, :exception=>#, :state=>:eek:ffline} MSF web service doesn't appear to be online. Sleeping 5.0s until check 1/10 Problem with HTTP get request /api/v1/msf/version, message: Failed to open TCP connection to localhost:5443 (Connection refused - connect(2) for "localhost" port 5443)
Bu da verdiği hatanın log dosyası:
Sorunun çözümünü buldum, Arch Linux'un metasploit-framework wiki sayfasında yönlendirdiği adımları uygularsanız sonuca ulaşıyorsunuz. Metasploit Framework - ArchWiki
 
Son düzenleyen: Moderatör:
Uyarı! Bu konu 6 yıl önce açıldı.
Muhtemelen daha fazla tartışma gerekli değildir ki bu durumda yeni bir konu başlatmayı öneririz. Eğer yine de cevabınızın gerekli olduğunu düşünüyorsanız buna rağmen cevap verebilirsiniz.

Technopat Haberler

Geri
Yukarı