82941732 2019-11-07
参考博文:https://www.jianshu.com/p/ea0629b9e367
deb http://http.kali.org/kali kali-rolling main non-free contrib deb-src http://http.kali.org/kali kali-rolling main non-free contrib
添加数字证书
$wget archive.kali.org/archive-key.asc //下载签名 $apt-key add archive-key.asc //安装签名
更新包列表
$apt-get update
添加postgresql源 deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main
安装postgresql
$wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - //添加数字证书 $apt-get update $apt-get install postgresql
$apt-get install metasploit-framework #so easy
$msfdb init
msf启动
$msfconsole
检测数据库连接
msf>db_status
出现postgresql connected to xxx说明数据库连接正常
sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common