Merge pull request #458 from Hackndo/patch-1

This commit is contained in:
Alex
2024-10-16 13:05:14 +02:00
committed by GitHub
+1 -1
View File
@@ -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)