fix: check if ntds attribute exists properly
parent
3cdb3cdf0b
commit
2c762989eb
|
@ -291,7 +291,7 @@ def main():
|
||||||
module_server.start()
|
module_server.start()
|
||||||
setattr(protocol_object, 'server', module_server.server)
|
setattr(protocol_object, 'server', module_server.server)
|
||||||
|
|
||||||
if (args.ntds and not args.userntds):
|
if hasattr(args, 'ntds') and args.ntds and not args.userntds:
|
||||||
ans = input(highlight('[!] Dumping the ntds can crash the DC on Windows Server 2019. Use the option --user <user> to dump a specific user safely [Y/n] ', 'red'))
|
ans = input(highlight('[!] Dumping the ntds can crash the DC on Windows Server 2019. Use the option --user <user> to dump a specific user safely [Y/n] ', 'red'))
|
||||||
if ans.lower() not in ['y', 'yes', '']:
|
if ans.lower() not in ['y', 'yes', '']:
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
Loading…
Reference in New Issue