Metasploit:模块数据库缓存尚未构建,使用缓慢搜索

elb*_*rna 8 security linux

kalilinux 2016 上的新 metasploit(最新稳定版)

systemctl start postgresql OK
Run Code Online (Sandbox Code Playgroud)

在 msfconsole 上

msf > db_status 
[*] postgresql connected to msf
Run Code Online (Sandbox Code Playgroud)

当我启动搜索时

msf > search samba
[!] Module database cache not built yet, using slow search
Run Code Online (Sandbox Code Playgroud)

所以我重建缓存...

msf > db_rebuild_cache
Run Code Online (Sandbox Code Playgroud)

当我启动搜索时

msf > search samba
[!] Module database cache not built yet, using slow search
Run Code Online (Sandbox Code Playgroud)

奇怪!这个问题怎么解决?

小智 14

你需要输入:

service postgresql start
Run Code Online (Sandbox Code Playgroud)

(你已经做了这个)

msfdb init 
Run Code Online (Sandbox Code Playgroud)

(我想你错过了这个)

db_rebuild_cache
Run Code Online (Sandbox Code Playgroud)

(然后在 msfconsole 中)

应该可以。


小智 -1

我用这个解决了这个错误:

  1. 打开 msf 控制台
  2. 类型git init

完毕