參考博文:https://www.jianshu.com/p/ea0629b9e367
0x0 添加Kali源
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
0x1 安裝postgresql
添加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
0x2 安裝metasploit-framework
$apt-get install metasploit-framework #so easy
0x3 初始化metasploit-framework
$msfdb init
0x4 完成安裝,檢查
msf啟動
$msfconsole
檢測數據庫連接
msf>db_status
出現postgresql connected to xxx說明數據庫連接正常