Skip to content

Commit

Permalink
Update WorkerThread.py
Browse files Browse the repository at this point in the history
  • Loading branch information
HZJQF committed Sep 18, 2024
1 parent 8eca79e commit 7c9a800
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tlzs/WorkerThread.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import hashlib
import hmac
import io
import itertools
import json
import multiprocessing
import os
Expand Down Expand Up @@ -541,13 +540,14 @@ def find_matching_plaintext(dump_file, target_str, algo_input, use_hmac, text_kn
# 解码为字符串
text = binary_data.decode('latin1')
# 使用正则表达式去除尾部的空白字符
if not re.search(r'[\s]', text):
text = extract_max_multiple_of_4_substring(text)

else:
text = re.sub(r'[\s]+$', '', text)
# if not re.search(r'[\s]', text):
# text = extract_max_multiple_of_4_substring(text)
#
# else:
text = re.sub(r'[\s]+$', '', text)
# text = extract_max_multiple_of_4_substring(text)
text = text.encode('latin1')

# 尝试将数据作为公钥加载
try:
public_key = serialization.load_pem_public_key(
Expand Down

0 comments on commit 7c9a800

Please sign in to comment.