2017年5月15日 星期一

fcrackzip 暴力破解 壓縮檔密碼

自己搞了一件烏龍事件,很久前加密了一個檔案,日子久了連自己都忘了當初的密碼。實在.................

我自己用的筆電是 Linux Mint 系統(Ubuntu 分支),找了一下,

發現 Ubuntu 系統下有一個套件可用,直接安裝試試:

sudo apt-get install fcrackzip

查詢使用方式: fcrackzip --help
  [-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

-b 暴力破解
-B 查看主機破解的速度破解的速度
-c 指定字元 a 说明密码是由小寫字母组成的
-D 使用字典
-l 初始密碼最短及最長字串長度
-p 指定一個初始化的密码 aaaaaa,如果是純數字000000,密碼長度是 6 個字元 
-u 用 zip 嘗試
-v 可以看到更多的資訊 

-c, –charset characterset-specification
與 -b 配合使用:
    a    - 所有小寫字母 [a-z]
    A    - 所有大寫字母[A-Z]
    1    - 由 0 至 9 的數目字 [0-9]
    !     - 包括 [!:$%&/()=?{[]}+*~#]
    :     - 跟在後面的是任意符號

fcrackzip -v -b -u test.zip      //加密的字元密碼長度都忘了(破解時間最久)

fcrackzip -v -b -u -c a1 test.zip    //英文小寫&數字混合

fcrackzip -v -b -u -c a -p aaaaaa test.zip      //英文小寫字元、長度 6 個字元



沒有留言:

張貼留言

ManageEngine EventLog Analyzer版本更新步驟

更新檔下載位址: Upgrade to Latest Version of EventLog Analyzer Build (manageengine.com) 先將下載的更新檔上傳到主機裡,再進行下列動作。 切換到 ManageEngine EventLog Analyzer ...