zipcracker,crc

Zip伪加密破解神器——ZipCracker-CSDN博客

命令

1.伪加密识别及修复

python ZipCracker.py test01.zip

2.暴力破解-内置字典

python ZipCracker.py test02.zip

3.暴力破解-用户自定义字典

python ZipCracker.py test02.zip MyDict.txt

crc

theonlypwner/crc32: CRC32 tools: reverse, undo/rewind, and calculate hashes (github.com)

exp

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
from binascii import crc32
import string
import zipfile

dic = string.printable


def CrackCrc(crc):
for i in dic:
# print (i)
for j in dic:
s = i + j
# print (crc32(bytes(s,'ascii')) & 0xffffffff)
if crc == (crc32(bytes(s, 'ascii')) & 0xffffffff):
print(s)
return


def getcrc32(fname):
l = []
file = fname
f = zipfile.ZipFile(file, 'r')
global fileList
fileList = f.namelist()
print(fileList)
# print (type(fileList))
for filename in fileList:
Fileinfo = f.getinfo(filename)
# print(Fileinfo)
crc = Fileinfo.CRC
# print ('crc',crc)
l.append(crc)
return l


def main(filename=None):
l = getcrc32(filename)
# print(l)
for i in range(len(l)):
print(fileList[i], end='的内容是:')
CrackCrc(l[i])


if __name__ == "__main__":
main('cccccccrc.zip')

zipcracker,crc
http://example.com/2023/11/13/爆破密钥2/
Author
chaye
Posted on
November 13, 2023
Licensed under