`

linux下zip文件密码破解Fcrackzip

阅读更多
fcrackzip暴力破解的速度很快,

我是在ubuntu上安装的,用命令sudo apt-get install fcrackzip

安装之后就可以开始破解了

首先用fcrackzip --help去查看命令的各个参数的意思,也可以用man去查看一下

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

上面的各个参数一看就明白了,其中的 -c是可以指定字符的类型,比如纯数字或着字母等
下面是-c 下面的具体的参数
-c, --charset characterset-specification
              Select  the  characters  to use in brute-force cracking. Must be
              one of

                a   include all lowercase characters [a-z]
                A   include all uppercase characters [A-Z]
                1   include the digits [0-9]
                !   include [!:$%&/()=?{[]}+*~#]
                :   the following characters upto the end of the spe-
                    cification string are included in the character set.
                    This way you can include any character except binary
                    null (at least under unix).

              For example, a1:$% selects lowercase characters, digits and  the
              dollar and percent signs.


OK,现在做一个例子,首先生成一个带有密码的zip的包

zip -P hujhh test.zip test1.txt test2,txt

可以看到密码是5位的纯字母

现在就用我们的这个软件开始破解

fcrackzip -v -b -u -c a -p aaaaa test.zip

不一会就可以看到破解成功的信息
PASSWORD FOUND!!!!: pw == hujhh

这里看到破解速度还是很快的,当然,这是知道密码的组成和位长的情况下,尝试的次数少,当然快,如果不知道长度,也不知道字符的组成,那么就看运气和速度了

说明一下上面的命令,一般的情况下也就是用这些参数
-v 就是可以看到更多的信息
-b 暴力破解
-u 用zip去尝试
-c 指定字符 a 就是说明密码是由小写字母组成的
-p 弄一个初始化的密码 aaaaaa 如果是纯数字000000  当然这里的长度都是6

-B 这个可以看看机子破解的速度

这个就说明到这里,其它的看帮助文档就可以了。

0
1
分享到:
评论
1 楼 yuanliangding 2017-01-16  
没加 -b,是随机出多少个密码偿试。?

相关推荐

Global site tag (gtag.js) - Google Analytics