資源簡介
代碼片段和文件信息
#codig:utf-8
?
import?time
import?zipfile
from?threading?import?Thread
import?multiprocessing
from?multiprocessing?import?Queue
?
?
#?input
path?=?“123.zip“??????#?文件路徑
g_maxprocess?=?1???#?分配進程數
g_minlength?=?3?????#?最小長度
g_maxlength?=?3????#?最大長度
g_startnum?=?0???????#開始數
?
thread_queue?=?[]
#?字符集,將可能的字符放在此數組里面。
g_chars?=?[
????‘0‘?‘1‘?‘2‘?‘3‘?‘4‘?‘5‘?‘6‘?‘7‘?‘8‘?‘9‘
????‘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‘
????‘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“)
評論
共有 條評論