mirror of
https://github.com/Pennyw0rth/NetExec
synced 2026-06-06 16:34:30 +00:00
add warning when dumping ntds
This commit is contained in:
committed by
Marshall Hallenbeck
parent
f3debbe2ae
commit
b994efc418
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user