check if a process still exists before deleting it
parent
875ac289e0
commit
1db376bed8
|
@ -742,7 +742,8 @@ def stdapi_sys_process_close(request, response):
|
|||
if not proc_h_id:
|
||||
return ERROR_SUCCESS, response
|
||||
proc_h_id = proc_h_id['value']
|
||||
del meterpreter.processes[proc_h_id]
|
||||
if meterpreter.processes.has_key(proc_h_id):
|
||||
del meterpreter.processes[proc_h_id]
|
||||
return ERROR_SUCCESS, response
|
||||
|
||||
@meterpreter.register_function
|
||||
|
|
Loading…
Reference in New Issue