From 7edc24820739b5a925f21a2e54383c93ff57e3e0 Mon Sep 17 00:00:00 2001 From: Spencer McIntyre Date: Mon, 10 Nov 2014 09:15:16 -0500 Subject: [PATCH] Don't fail if username_from_token returns None --- data/meterpreter/ext_server_stdapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/meterpreter/ext_server_stdapi.py b/data/meterpreter/ext_server_stdapi.py index 526e61c480..aa1ca27df5 100644 --- a/data/meterpreter/ext_server_stdapi.py +++ b/data/meterpreter/ext_server_stdapi.py @@ -879,7 +879,7 @@ def stdapi_sys_process_get_processes_via_windll(request, response): process_username = '' process_token_user = get_token_user(proc_h) if process_token_user: - process_username = get_username_from_token(process_token_user) + process_username = get_username_from_token(process_token_user) or '' parch = windll_GetNativeSystemInfo() is_wow64 = ctypes.c_ubyte() is_wow64.value = 0