Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Commit 3240b02

Browse files
author
pepeleaks
committed
bug fixed
1 parent 25ac312 commit 3240b02

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

INFO/changelog.json

+6
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,11 @@
44
"changes": [
55
"De4py released"
66
]
7+
},
8+
{
9+
"version": "1.0.1",
10+
"changes": [
11+
"bug fixed for BlankOBF deobfuscator"
12+
]
713
}
814
]

INFO/version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
V1.0
1+
V1.0.1

deobfuscators/blankOBF.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ def disasm(text):
1515
original_stdout = sys.stdout
1616
try:
1717
sys.stdout = disassembly_output
18-
dis.dis(marshal.loads(base64.b64decode(codecs.decode(variable_list[0][1], 'rot13')+variable_list[2][1]+variable_list[3][1][::-1]+variable_list[1][1])))
18+
marshal_code=(base64.b64decode(codecs.decode(variable_list[0][1], 'rot13')+variable_list[2][1]+variable_list[3][1][::-1]+variable_list[1][1]))
19+
try:
20+
dis.dis(marshal.loads(marshal_code))
21+
except:
22+
print("failed to dis marshal code so heres the marshal code only:\n")
23+
print(marshal_code)
1924
finally:
2025
sys.stdout = original_stdout
2126
disassembly_text = disassembly_output.getvalue()

deobfuscators/detector.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
("PlusOBF",r"exec\(\"\"\.join\(\[chr\(len\(i\)\) for i in d\]\)\)",PlusOBF),
99
('jawbreaker', r'([a-zA-Z_]\w{3})\s*=\s*([^;]+);', jawbreaker),
1010
("wodx", r'(?:__NO_NO){23}', wodx),
11-
("BlankOBF", r"import base64, lzma; exec\(compile\(lzma\.decompress\(base64\.b64decode\(b'([A-Za-z0-9+/=]+)'\)\), \"<string>\", \"exec\"\)\)", BlankOBF),
11+
("BlankOBF", r"import\s*base64,\s*lzma;\s*exec\(compile\(lzma\.decompress\(base64\.b64decode\(b'([A-Za-z0-9+/=]+)'\)\)\s*,\s*\"<string>\"\s*,\s*\"exec\"\)\)", BlankOBF),
1212
]
1313
def detect_obfuscator(file_path):
1414
file_data = open(file_path,'r',encoding='utf8').read()

0 commit comments

Comments
 (0)