79606658

Date: 2025-05-05 09:35:02
Score: 0.5
Natty:
Report link

I keep getting this default workspace error in kali>MSF.Have tried everything but the error keeps returning.Tried default workspace also but the error keeps returning.have tried reinstalling and upgrading all the modules in kali with sudo apt-apt update & upgrade -y

┌──(root㉿kalimacstudio3)-[~]
└─# service postgresql start
                                                                                         
┌──(root㉿kalimacstudio3)-[~]
└─# service postgresql status
● postgresql.service - PostgreSQL RDBMS
     Loaded: loaded (/usr/lib/systemd/system/postgresql.service; disabled; preset: disab>
     Active: active (exited) since Mon 2025-05-05 11:40:47 IST; 49min ago
 Invocation: b31109a027d74f0c94ff36c35ac76f77
    Process: 13017 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
   Main PID: 13017 (code=exited, status=0/SUCCESS)
   Mem peak: 1.7M
        CPU: 5ms

May 05 11:40:47 kalimacstudio3 systemd[1]: Starting postgresql.service - PostgreSQL RDBM>
May 05 11:40:47 kalimacstudio3 systemd[1]: Finished postgresql.service - PostgreSQL RDBM>
zsh: quit       service postgresql status
                                                                                         
┌──(root㉿kalimacstudio3)-[~]
└─# msfconsole -q
msf6 > workspace -l
  pentest1
  pentest2
* default
msf6 > db_status
[*] Connected to msf. Connection type: postgresql.
msf6 > db_disconnect
Successfully disconnected from the data service: local_db_service.
msf6 > db_connect user4msf:9969@localhost:5432/db4msf
[*] Connected to Postgres data service: localhost/db4msf
msf6 > db_status
[-] Error while running command db_status: Couldn't find workspace default

Call stack:
/usr/share/metasploit-framework/lib/msf/util/db_manager.rb:52:in `process_opts_workspace'
/usr/share/metasploit-framework/lib/msf/core/db_manager/event.rb:55:in `block in report_event'
/usr/share/metasploit-framework/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:215:in `with_connection'
/usr/share/metasploit-framework/lib/msf/core/db_manager/event.rb:54:in `report_event'
/usr/share/metasploit-framework/lib/metasploit/framework/data_service/proxy/event_data_proxy.rb:18:in `block in report_event'
/usr/share/metasploit-framework/lib/metasploit/framework/data_service/proxy/core.rb:164:in `data_service_operation'
/usr/share/metasploit-framework/lib/metasploit/framework/data_service/proxy/event_data_proxy.rb:16:in `report_event'
/usr/share/metasploit-framework/lib/msf/core/framework.rb:328:in `report_event'
/usr/share/metasploit-framework/lib/msf/core/framework.rb:377:in `on_ui_command'
/usr/share/metasploit-framework/lib/msf/core/event_dispatcher.rb:145:in `block in method_missing'
/usr/share/metasploit-framework/lib/msf/core/event_dispatcher.rb:143:in `each'
/usr/share/metasploit-framework/lib/msf/core/event_dispatcher.rb:143:in `method_missing'
/usr/share/metasploit-framework/lib/msf/ui/console/driver.rb:408:in `block in on_startup'
/usr/share/metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:530:in `block in run_single'
/usr/share/metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:525:in `each'
/usr/share/metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:525:in `run_single'
/usr/share/metasploit-framework/lib/rex/ui/text/shell.rb:165:in `block in run'
/usr/share/metasploit-framework/lib/rex/ui/text/shell.rb:309:in `block in with_history_manager_context'
/usr/share/metasploit-framework/lib/rex/ui/text/shell/history_manager.rb:37:in `with_context'
/usr/share/metasploit-framework/lib/rex/ui/text/shell.rb:306:in `with_history_manager_context'
/usr/share/metasploit-framework/lib/rex/ui/text/shell.rb:133:in `run'
/usr/share/metasploit-framework/lib/metasploit/framework/command/console.rb:54:in `start'
/usr/share/metasploit-framework/lib/metasploit/framework/command/base.rb:82:in `start'
/usr/bin/msfconsole:23:in `<main>'
msf6 > 
Reasons:
  • Blacklisted phrase (1): ve tried everything
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Axxeman