Skip to content

Commit 6d799df

Browse files
authored
Merge pull request #19 from VirusTotal/change-dmp-ext
omogenise to windows dumps extension (dmp)
2 parents 308c962 + 54d76b4 commit 6d799df

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

analyzer/linux/analyzer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def dump_memory(pid):
101101
try:
102102
maps_file = open(f"/proc/{pid}/maps", "r")
103103
mem_file = open(f"/proc/{pid}/mem", "rb", 0)
104-
output_file = open(f"{MEM_PATH}/{pid}.dump", "wb")
104+
output_file = open(f"{MEM_PATH}/{pid}.dmp", "wb")
105105

106106
for line in maps_file.readlines():
107107
m = re.match(r"([0-9A-Fa-f]+)-([0-9A-Fa-f]+) ([-r])(\S+)\s+\d+\s+\S+\s+\d+\s*(.*)?", line)
@@ -126,8 +126,8 @@ def dump_memory(pid):
126126
except PermissionError:
127127
log.error(f"Permission denied to access process with PID {pid}.")
128128

129-
if os.path.exists(f"{MEM_PATH}/{pid}.dump"):
130-
upload_to_host(f"{MEM_PATH}/{pid}.dump", f"memory/{pid}.dump")
129+
if os.path.exists(f"{MEM_PATH}/{pid}.dmp"):
130+
upload_to_host(f"{MEM_PATH}/{pid}.dmp", f"memory/{pid}.dmp")
131131
DUMPED_LIST.add(pid)
132132
else:
133133
log.error(f"Memdump file not found in guest machine for PID {pid}")

0 commit comments

Comments
 (0)