Skip to content

Commit 0b1cd10

Browse files
committed
Fixed a bug where datperscan did not successful termination when config decoding failed
1 parent cd40bad commit 0b1cd10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/datperscan.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
import volatility.debug as debug
1515
import volatility.plugins.malware.malfind as malfind
1616
import re
17-
import sys
1817
import pefile
1918
from struct import unpack, unpack_from
2019
from collections import OrderedDict
@@ -221,7 +220,8 @@ def calculate(self):
221220
try:
222221
pe = pefile.PE(data=data)
223222
except:
224-
sys.exit("[!] could not parse as a PE file")
223+
# print("[!] could not parse as a PE file")
224+
break
225225

226226
config_size = CONFSIZE
227227

0 commit comments

Comments
 (0)