We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bb668ca + ad71df8 commit 1f04ce2Copy full SHA for 1f04ce2
1 file changed
nxc/modules/backup_operator.py
@@ -118,3 +118,11 @@ def parse_sam(secret):
118
context.log.display("netexec smb dc_ip -u user -p pass -x \"del C:\\Windows\\sysvol\\sysvol\\SECURITY && del C:\\Windows\\sysvol\\sysvol\\SAM && del C:\\Windows\\sysvol\\sysvol\\SYSTEM\"") # noqa: Q003
119
else:
120
context.log.display("Successfully deleted dump files !")
121
+
122
+ def _strip_root_key(self, dce, key_name):
123
+ # Let's strip the root key
124
+ key_name.split("\\")[0]
125
+ sub_key = "\\".join(key_name.split("\\")[1:])
126
+ ans = rrp.hOpenLocalMachine(dce)
127
+ h_root_key = ans["phKey"]
128
+ return h_root_key, sub_key
0 commit comments