macOS安装zip2john

首先使用MacOS安装homebrew
安装完homebrew后再安装john的增强版:john-jumbo

brew install john-jumbo

默认homebrew的环境变量只到包的bin下,需要自己配置环境变量
进入安装目录:

cd /opt/homebrew/Cellar/john-jumbo/

查看版本

ls

比如我的是1.9.0_1
配置临时环境变量

export PATH="/opt/homebrew/Cellar/john-jumbo/1.9.0_1/share/john:$PATH"

配置永久环境变量

echo 'export PATH="/opt/homebrew/cellar/mtr/0.95/sbin:$PATH"' >> ~/.zshrc
source ~/.zshrc

Sitemap · Rss

津ICP备2021004480号-3