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

猜你喜欢

转载自blog.csdn.net/jayjaydream/article/details/108558082
今日推荐