1、curl /rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall
2、chmod 755 msfinstall
3、./msfinstall
依次執行上面的三條命令即可安裝成功
2
安裝postgresql數據庫
安裝數據庫的時候會自動創建系統用戶postgres,數據庫用戶postgres,數據庫postgres
1、apt-get install postgresql //安裝postgresql數據庫
2、su - postgres //切換到postgres用戶
3、psql //登陸postgresql數據庫,首次登陸沒有密碼
4、\password postgres //修改數據庫用戶postgres的密碼
3
msf使用數據庫
1、msfconsole //啟動msf
2、db_connect postgres:hehehe@127.0.0.1/test //用戶名,密碼,地址,自己隨意編造的名字。
3、db_status //查看數據庫連接狀態
4
安裝完成,可以開始妳的metasploit滲透之路了!!!
5
參考:如果希望添加新的用戶
建立壹個普通用戶
useradd -m feng //feng是我的用戶名,妳可以改成任意用戶名。
passwd feng //設置壹下新建的用戶名的密碼。
usermod -a -G sudo feng //修改用戶的附加組為超級管理組。
chsh -s /bin/bash feng //設置用戶使用的命令控制臺。
6
sure : if you want to download it from "/
then move to the bottom , get it !!