debian10安装Metasploit
0x0 注释source.list
debian的更新源。
0x1 添加Kali源,在source.list.d
新建kali.list,方便操作。
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
阿里云的kali源
deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
deb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
添加数字证书
$wget archive.kali.org/archive-key.asc //下载签名
$apt-key add archive-key.asc //安装签名
更新包列表
$apt-get update
0x2 安装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
0x3 安装metasploit-framework
$apt-get install metasploit-framework #so easy
0x4 初始化metasploit-framework
$msfdb init
0x5 完成安装,检查
msf启动
$msfconsole
检测数据库连接
msf>db_status
出现postgresql connected to xxx说明数据库连接正常
报错
warning: warning: deprecated Object#=~ is called on Integer; it always returns nil。
这个是我报告问题的路径,打开文件,跳到84行
互换SIMPLE_INT与config,后添加.to_s(此处由于不将config,msfconsole 链接数据库是会报错,提示整型没有转字符串,导致打开无法链接)
def self.type_cast_config_to_integer(config)
if SIMPLE_INT =~ config.to_s
config.to_i
else
config
end
end
个人博客:cscwdxgg.github.io
微信公众号:Asz918q
微信公众号:Asz918q