diff --git a/nxc/modules/runasppl.py b/nxc/modules/runasppl.py index 15f6bccd..917e893c 100644 --- a/nxc/modules/runasppl.py +++ b/nxc/modules/runasppl.py @@ -17,7 +17,7 @@ class NXCModule: command = r"reg query HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\ /v RunAsPPL" context.log.debug(f"Executing command: {command}") p = connection.execute(command, True) - if "The system was unable to find the specified registry key or value" in p: + if not p or "The system was unable to find the specified registry key or value" in p: context.log.debug("Unable to find RunAsPPL Registry Key") else: context.log.highlight(p)