Skip to content

Commit d3d6839

Browse files
committed
remove error truncate
1 parent 0411ac5 commit d3d6839

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

volatility3/framework/plugins/windows/malware/pebmasquerade.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def get_process_names(self, proc: interfaces.objects.ObjectInterface) -> Tuple[
134134
vollog.warning(
135135
"Error reading EPROCESS.ImageFileName for PID %d: %s",
136136
proc.UniqueProcessId,
137-
str(e)[:50],
137+
str(e),
138138
)
139139

140140
try:
@@ -156,7 +156,7 @@ def get_process_names(self, proc: interfaces.objects.ObjectInterface) -> Tuple[
156156
vollog.warning(
157157
"Error reading SeAuditProcessCreationInfo for PID %d: %s",
158158
proc.UniqueProcessId,
159-
str(e)[:50],
159+
str(e),
160160
)
161161

162162
try:
@@ -176,7 +176,7 @@ def get_process_names(self, proc: interfaces.objects.ObjectInterface) -> Tuple[
176176
vollog.warning(
177177
"Error reading PEB.ImagePathName for PID %d: %s",
178178
proc.UniqueProcessId,
179-
str(e)[:50],
179+
str(e),
180180
)
181181

182182
try:
@@ -192,14 +192,14 @@ def get_process_names(self, proc: interfaces.objects.ObjectInterface) -> Tuple[
192192
vollog.warning(
193193
"Error reading PEB.ProcessParameters.CommandLine for PID %d: %s",
194194
proc.UniqueProcessId,
195-
str(e)[:50],
195+
str(e),
196196
)
197197
except (AttributeError, exceptions.InvalidAddressException):
198198
# Important for cases where PEB does not exist or is inaccessible (e.g SYSTEM process)
199199
vollog.debug("Unable to access PEB for PID %d", proc.UniqueProcessId)
200200
except Exception as e:
201201
vollog.warning(
202-
"Error accessing PEB for PID %d: %s", proc.UniqueProcessId, str(e)[:50]
202+
"Error accessing PEB for PID %d: %s", proc.UniqueProcessId, str(e)
203203
)
204204

205205
return (
@@ -245,7 +245,7 @@ def _generator(self, pids, context, kernel_module_name):
245245
vollog.debug(
246246
"Error extracting command line path for PID %d: %s",
247247
proc_id,
248-
str(e)[:50],
248+
str(e),
249249
)
250250

251251
# Populate notes for enrichment

0 commit comments

Comments
 (0)