File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ def dump_memory(pid):
101
101
try :
102
102
maps_file = open (f"/proc/{ pid } /maps" , "r" )
103
103
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" )
105
105
106
106
for line in maps_file .readlines ():
107
107
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):
126
126
except PermissionError :
127
127
log .error (f"Permission denied to access process with PID { pid } ." )
128
128
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 " )
131
131
DUMPED_LIST .add (pid )
132
132
else :
133
133
log .error (f"Memdump file not found in guest machine for PID { pid } " )
You can’t perform that action at this time.
0 commit comments