metasploit5配置數據庫


#踩坑:Please run msfdb as a non-root user

apt-get install postgresql #安裝數據庫

service postgresql start #啟動數據庫

update-rc.d postgresql enable          postgresql開機自啟

su postgres #切換用戶

createuser msf5 -P -S -R -D #創建數據庫用戶輸密碼

createdb -O msf5 msf5 #創建數據庫

exit #退出用戶回到root

vim /opt/metasploit-framework/embedded/framework/config/database.yml

或/usr/share/metasploit-framework/config/database.yml

修改一下內容:

database: msf5

username: msf5

password: 123

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM