mac用fcrackzip命令破解zip壓縮文件密碼

1、fcrackzip簡介

fcrackzip是一款專門破解zip類型壓縮文件密碼的工具,工具小巧方便、破解速度快,能使用字典和指定字符集破解,適用于linux、mac osx 系統(tǒng)

2、fcrackzip安裝

brew install fcrackzip

3、fcrackzip參數(shù)介紹

$ fcrackzip -h

fcrackzip version 1.0, a fast/free zip password cracker
written by Marc Lehmann <pcg@goof.com> You can find more info on
http://www.goof.com/pcg/marc/

USAGE: fcrackzip
      [-b|--brute-force]            use brute force algorithm
      [-D|--dictionary]             use a dictionary
      [-B|--benchmark]              execute a small benchmark
      [-c|--charset characterset]   use characters from charset
      [-h|--help]                   show this message
      [--version]                   show the version of this program
      [-V|--validate]               sanity-check the algortihm
      [-v|--verbose]                be more verbose
      [-p|--init-password string]   use string as initial password/file
      [-l|--length min-max]         check password with length min to max
      [-u|--use-unzip]              use unzip to weed out wrong passwords
      [-m|--method num]             use method number "num" (see below)
      [-2|--modulo r/m]             only calculcate 1/m of the password
      file...                    the zipfiles to crack

methods compiled in (* = default):

 0: cpmask
 1: zip1
*2: zip2, USE_MULT_TAB

部分重要參數(shù)說明

-c 指定字符集,字符集 格式只能為 -c 'aA1!:' 
a 表示小寫字母[a-z]
A 表示大寫字母[A-Z]
1 表示阿拉伯數(shù)字[0-9]
! 感嘆號表示特殊字符[!:$%&/()=?{[]}+*~#]
: 表示包含冒號之后的字符(不能為二進制的空字符),例如  a1:$%  表示 字符集包含小寫字母、數(shù)字、$字符和%百分號

具體請參考

man fcrackzip

4、fcrackzip案例

假如有一個文件sn.zip文件加密,密碼為12345,我們可使用fcrackzip暴力破解

$ fcrackzip -b -c '1' -l 1-5 -u sn.zip 

PASSWORD FOUND!!!!: pw == 12345

參數(shù)解釋:

-b 表示使用暴力破解的方式
-c 'aA1' 表示使用大小寫字母和數(shù)字混合破解的方式
-l 1-10 表示需要破解的密碼長度為1到10位
-u 表示只顯示破解出來的密碼,其他錯誤的密碼不顯示出

如果想要使用現(xiàn)有的字典破解的話,你可以寫成如下形式:

$ fcrackzip -D -p 10-million-password-list-top-1000000.txt -u sn.zip 

PASSWORD FOUND!!!!: pw == 12345

參數(shù)解釋:

-D 表示要使用字典破解
-p 表示要使用哪個字典破解
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

推薦閱讀更多精彩內(nèi)容