Centos安装msf

0x01安装ruby环境

metasploit需要ruby环境,centos默认未安装ruby环境,这里安装下ruby2.6.5

下载地址 https://cache.ruby-china.com/pub/ruby/,下载列表如下:

image-20220120161458963

在centos下载压缩包

wget https://cache.ruby-china.com/pub/ruby/ruby-2.6.5.zip

解压

unzip ruby-2.6.5.zip

[root@localhost ~]# cd /home/joyce/soft/ruby-2.6.5     进入目录
[root@localhost ~]# ./configure                        执行配置。或者:   ./configure  --with-openssl-dir=/usr/local/ssl  可以解决报错:Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources
[root@localhost ~]# sudo make install                  安装
[root@localhost ~]# ruby -v                            验证

安装成功

image-20220120161830672

参考:https://my.oschina.net/u/4256916/blog/3311868

0x02下载安装msf

查看GitHub上的下载地址

https://github.com/rapid7/metasploit-framework/wiki/Nightly-Installers

image-20220120160600264

下载地址 https://rpm.metasploit.com/

在这里插入图片描述

01下载rmp包

wget https://rpm.metasploit.com/metasploit-omnibus/pkg/metasploit-framework-6.1.22%2B20211230112600~1rapid7-1.el6.x86_64.rpm --no-check-certificate

image-20220120155809552

02安装msf

rpm -ivh 包名 //安装并在安装过程中显示正在安装的文件信息及安装进度

[root@localhost ~]# rpm -ivh metasploit-framework-6.1.22+20211230112600~1rapid7-1.el6.x86_64.rpm

image-20220120155003287

03启动msf

[root@localhost ~]# msfconsole

image-20220120154856762

04卸载msf

另外记下卸载方法

rpm -e 包名

[root@localhost ~]# rpm -e metasploit-framework 

参考:

https://github.com/rapid7/metasploit-framework/wiki/Nightly-Installers

https://blog.csdn.net/wangjingqi930330/article/details/100988882

  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值