check if a process still exists before deleting it

bug/bundler_fix
Brent Cook 2015-08-15 19:46:04 -05:00
parent 875ac289e0
commit 1db376bed8
1 changed files with 2 additions and 1 deletions

View File

@ -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