add warning when dumping ntds

This commit is contained in:
mpgn
2023-03-21 17:07:18 -04:00
committed by Marshall Hallenbeck
parent f3debbe2ae
commit b994efc418
+5
View File
@@ -302,6 +302,11 @@ def main():
if ans.lower() not in ['y', 'yes', '']:
sys.exit(1)
if (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'))
if ans.lower() not in ['y', 'yes', '']:
sys.exit(1)
try:
asyncio.run(
start_threadpool(protocol_object, args, db, targets, jitter)