關於 PHP, Linux, Open Source 及個人生活記載的網誌。
RSS icon
  • Linux 下破解 zip 密碼

    Posted on April 20th, 2008 Sam Tang No comments

    fcrackzip 是一個在 Linux 下破解 zip 檔案密碼的工具,而且因為用組合語言寫成,執行速度十分快。fcrackzip 支援暴力法 (try and error) 破解,以及使用字典檔。在 Ubuntu 下安裝 fcrackzip 只須透過 apt-get 便可以:

    sudo apt-get install fcrackzip

    至於其他作業系統,fcrackzip 提供了源代碼、Linux binary 及 Windows binary。

    fcrackzip Syntax

    fcrackzip [-bDBchVvplum2] [--brute-force] [--dictionary] [--benchmark] [--charset characterset] [--help] [--validate] [--verbose] [--init-password string/path] [--length min-max] [--use-unzip] [--method name] [--modulo r/m] file.

    fcrackzip OPTIONS

    -b, –brute-force
    選擇暴力法破解,使用指領的規則。

    -D, –dictionary
    選擇字典檔,fcrackzip 會讀取指定檔案的字串,然後逐一嘗試。密碼的格式為一行一個密碼。

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

    -p, –init-password string
    配合 -b 使用時,設定從那一個字串開始破解。如果與 -D 配合使用,是指字典檔路徑。

    -l, –length min[-max]
    設定初始密碼最短及最長字串長度。

    -u, –use-unzip
    先嘗試使用 unzip 解壓。

    -m, –method name
    改變預設破解模式。

    fcrackzip 例子

    fcrackzip -c a -p aaaaaa sample.zip

    以下例子會破解 sample.zip 檔案,並設定密碼在 6 個位的小寫字母。


    Leave a reply

    *
    To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
    Click to hear an audio file of the anti-spam word