Skip to content

Commit ae4317c

Browse files
authored
Merge pull request Pennyw0rth#458 from Hackndo/patch-1
2 parents 6d4fdfd + a798bb6 commit ae4317c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nxc/modules/runasppl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def on_admin_login(self, context, connection):
1717
command = r"reg query HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\ /v RunAsPPL"
1818
context.log.debug(f"Executing command: {command}")
1919
p = connection.execute(command, True)
20-
if "The system was unable to find the specified registry key or value" in p:
20+
if not p or "The system was unable to find the specified registry key or value" in p:
2121
context.log.debug("Unable to find RunAsPPL Registry Key")
2222
else:
2323
context.log.highlight(p)

0 commit comments

Comments
 (0)