msf
百度百科
Metasploit是一款開源的安全漏洞檢測工具,可以幫助安全和IT專業人士識別安全性問題,驗證漏洞的緩解措施,並管理專家驅動的安全性進行評估,提供真正的安全風險情報。這些功能包括智能開發,密碼審計,Web應用程序掃描,社會工程。團隊合作,在Metasploit和綜合報告提出了他們的發現。
環境:kali linux 2017
啟動msfconsole
打開后顯示數據庫沒有鏈接
解決方法如下
//啟動對應的服務
root@kali:~# service postgresql restart root@kali:~# msfdb start root@kali:~# msfconsole msf > db_status [*] postgresql selected, no connection 數據庫未連接 'msf > ' root@kali:~# msfdb -h Error: unrecognized action '-h' Manage a metasploit framework database msfdb init # initialize the database msfdb reinit # delete and reinitialize the database msfdb delete # delete database and stop using it msfdb start # start the database msfdb stop # stop the database //初始化數據庫並重啟 msfdb reinit msfdb start msf > msf > db_status [*] postgresql connected to msf db_discomnect 斷開數據庫 cat /usr/share/metasploit-framework/config/database.yml db_connect msf:s9qvzls1+7Bs4sfLg8nHeX7HaXG3aa8adMVfZDJotC8=@localhost/msf msf > db_ db_connect db_export db_nmap db_status db_disconnect db_import db_rebuild_cache msf > db_status [*] postgresql connected to msf msf > db_disconnect msf > db_connect msf:PtQ5o7VfChzWvvvrU5t8jTkFaHyApHjnJqnTuzR3ZHw=@localhost/msf [*] Rebuilding the module cache in the background... msf > db_status searsh