1

Every time I update from git, the database is invalidated.

msf exploit(handler) > search xxx
[!] Module database cache not built yet, using slow search

How can I force the database to be built?

And in msfconsole, how can I check the database update status?

  • Thanks @void_in, but I didn't find the part answering my question. The only thing it talks about it how to setup a database, which is something I've already done ... – daisy Sep 22 '16 at 9:15
  • After you install and start the PostreSQL db, run the command msfdb init – void_in Sep 22 '16 at 11:10
  • @void_in Hmm, there's no msfdb command in git version ... – daisy Sep 22 '16 at 11:10
  • What is the status of db_status command on the msfconsole? – void_in Sep 22 '16 at 14:09
1

If you get a "[!] Module database cache not built yet, using slow search" error after updating. Once you disconnect the database connection, you can try to reconnect db.

 1. msf > db_status
 2. msf > db_disconnect
 3. msf > db_status
 4. msf > db_connect user:pass@127.0.0.1:5432/dbName
 5. msf > db_rebuild_cache
 6. msf > db_status
 7. msf > search xxx

You can try version command maybe help

msf > version 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.