Mac安装metasploit-framework【亲测有用】

1.下载pkg文件:
http://osx.metasploit.com/metasploitframework-latest.pkg

2.进入cd /opt/metasploit-framework/bin/目录

3.执行数据库初始化 ./msfdb init

一定要这么做,否则连接的数据库一定有问题。

4.运行./msfconsole

Metasploit已经内置各种依赖,可以不再使用brew了,也可以顺便装上HomeBrew了,免得以后又用到。

5.在zsh配置文件下配置msf路径的环境变量:

vim ~/.zshrc

添加如下内容:

export PATH="$PATH:/opt/metasploit-framework/bin"

使用msfconsole即可启动metasploit。

 

参考资料:

1.Mac下安装Metasploit

2.mac os 安装metasploit v5.0.23(msf)

3.Mac的MSF"Could not find rake-xxx in any of the sources"报错和重新安装

4.macOS下优雅的使用Metasploit

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

鹿鸣天涯

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值