当我尝试破解 zip 文件时,它总是显示 -bash: zip2john: 未找到命令。我通过 homebrew 安装,运行 john 没有显示错误,我不确定命令是否未安装或什么?当我运行 ls /bin/ 时,我没有看到 zip2john 命令。我尝试了列出的解决方案命令 zip2john 不起作用但仍然无法正常工作。这些员工都是新手。帮助 T_T(设备:Mac Big Sur)
答案1
我的 Mac 也是 Big Sur M1。
如果您安装 john 并使用 brew ,则 brew install john-jumbo 命令zip2john
将位于/opt/homebrew/Cellar/john-jumbo/1.9.0/share/john/zip2john
路径中。
因为,约翰只链接到/opt/homebrew/bin/
所以我找不到它
也许你可以添加/opt/homebrew/Cellar/john-jumbo/1.9.0/share/john/
到$PATH,然后就可以正常使用了
ryan.chen@ryanMac bin % ls -al | grep "john"
lrwxr-xr-x 1 ryan.chen admin 35 Aug 18 11:05 john -> ../Cellar/john-jumbo/1.9.0/bin/john
ryan.chen@ryanMac john % ./zip2john
Usage: ./zip2john [options] [zip file(s)]
Options for 'old' PKZIP encrypted files only:
-a <filename> This is a 'known' ASCII file. This can be faster, IF all
files are larger, and you KNOW that at least one of them starts out as
'pure' ASCII data.
-o <filename> Only use this file from the .zip file.
-c This will create a 'checksum only' hash. If there are many encrypted
files in the .zip file, then this may be an option, and there will be
enough data that false possitives will not be seen. If the .zip is 2
byte checksums, and there are 3 or more of them, then we have 48 bits
knowledge, which 'may' be enough to crack the password, without having
to force the user to have the .zip file present.
-m Use "file magic" as known-plain if applicable. This can be faster but
not 100% safe in all situations.
-2 Force 2 byte checksum computation.
NOTE: By default it is assumed that all files in each archive have the same
password. If that's not the case, the produced hash may be uncrackable.
To avoid this, use -o option to pick a file at a time.
ryan.chen@ryanMac john % pwd
/opt/homebrew/Cellar/john-jumbo/1.9.0/share/john
答案2
您需要安装 John 的完整版本
brew install john-jumbo
答案3
在我的 M1 Mac 上,zip2john
它符号链接到john
,但位于可执行文件所在的位置john
- 因此它不在PATH