> msf手动连接数据库
root@root:~# apt install postgresql ###切换postgres账号root@root:~# service postgresql startroot@root:~# su postgres ###切换postgres账号postgres@root:# createuser user -P ###创建test账号,密码为test。postgres@root:# createdb --owner=user db ###owner参数指定数据库的所有者,赋予数据库的所有者为test,创建数据库为test。msf > db_connect user:pass@localhost/db ###进入msf,连接数据库
> 解决2021 kali msfconsole无法启动的问题
报错信息:Unable to find a spec satisfying metasploit-framework (>= 0) in the set. Perhaps the lockfile is corrupted?
命令:
sudo gem install bundler -v 2.2.4
