資源簡(jiǎn)介
代碼片段和文件信息
#codig:utf-8
?
import?time
import?zipfile
from?threading?import?Thread
import?multiprocessing
from?multiprocessing?import?Queue
?
?
#?input
path?=?“123.zip“??????#?文件路徑
g_maxprocess?=?1???#?分配進(jìn)程數(shù)
g_minlength?=?3?????#?最小長(zhǎng)度
g_maxlength?=?3????#?最大長(zhǎng)度
g_startnum?=?0???????#開(kāi)始數(shù)
?
thread_queue?=?[]
#?字符集,將可能的字符放在此數(shù)組里面。
g_chars?=?[
????‘0‘?‘1‘?‘2‘?‘3‘?‘4‘?‘5‘?‘6‘?‘7‘?‘8‘?‘9‘
????‘a(chǎn)‘?‘b‘?‘c‘?‘d‘?‘e‘?‘f‘?‘g‘?‘h‘?‘i‘?‘j‘?‘k‘?‘l‘?‘m‘?‘n‘?‘o‘?‘p‘?‘q‘?‘r‘?‘s‘?‘t‘?‘u‘?‘v‘‘w‘?‘x‘?‘y‘?‘z‘
????‘A‘?‘B‘?‘C‘?‘D‘?‘E‘?‘F‘?‘G‘?‘H‘?‘I‘?‘J‘?‘K‘?‘L‘?‘M‘?‘N‘?‘O‘?‘P‘?‘Q‘?‘R‘?‘S‘?‘T‘?‘U‘?‘V‘‘W‘?‘X‘?‘Y‘?‘Z‘
????‘.‘?‘#‘
]
?
#?提取文件
def?extractFile(binfile?password):
????try:
????????binfile.extractall(pwd=?bytes(password“utf-8“)
評(píng)論
共有 條評(píng)論