Skip to content

Commit 7edc248

Browse files
committed
Don't fail if username_from_token returns None
1 parent 104841b commit 7edc248

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data/meterpreter/ext_server_stdapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ def stdapi_sys_process_get_processes_via_windll(request, response):
879879
process_username = ''
880880
process_token_user = get_token_user(proc_h)
881881
if process_token_user:
882-
process_username = get_username_from_token(process_token_user)
882+
process_username = get_username_from_token(process_token_user) or ''
883883
parch = windll_GetNativeSystemInfo()
884884
is_wow64 = ctypes.c_ubyte()
885885
is_wow64.value = 0

0 commit comments

Comments
 (0)