当我尝试破解 zip 文件时,它总是显示 -bash: zip2john: 命令未找到。我通过自制程序安装,运行 john 显示没有错误,我不确定是命令未安装还是什么?当我运行 ls /bin/ 时,我没有看到 zip2john 命令。我尝试了列出的解决方案命令 zip2john 不起作用,但仍然不起作用。对于这些员工来说是新的。帮助 T_T(设备:Mac Big Sur)
小智 5
我的 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
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
8930 次 |
最近记录: |