File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -225,7 +225,7 @@ def get_special_strs(self):
225
225
the_file = open (self .file_path , "rb" )
226
226
file_content = the_file .read ()
227
227
the_file .close ()
228
- tmp_base64_strs = re .findall (rb"[A-Za-z0-9+/]{2 ,}={0 ,2}" , file_content )
228
+ tmp_base64_strs = re .findall (rb"[A-Za-z0-9+/]{6 ,}={1 ,2}" , file_content )
229
229
possible_base64_strs = []
230
230
for tmp_base64_str in tmp_base64_strs :
231
231
# 过滤hex字符串
@@ -240,7 +240,10 @@ def get_special_wide_strs(self):
240
240
the_file = open (self .file_path , "rb" )
241
241
file_content = the_file .read ()
242
242
the_file .close ()
243
- tmp_base64_strs = re .findall (rb"(?:[A-Za-z0-9+/]\x00){2,}(?:=\x00){0,2}" , file_content )
243
+ tmp_base64_strs = re .findall (
244
+ rb"(?:[A-Za-z0-9+/]\x00){6,}(?:=\x00){1,2}" ,
245
+ file_content ,
246
+ )
244
247
possible_base64_strs = []
245
248
for tmp_base64_str in tmp_base64_strs :
246
249
# 过滤hex字符串
You can’t perform that action at this time.
0 commit comments