Skip to content

Commit 7af9020

Browse files
committed
add warning when dumping ntds
1 parent 66c996e commit 7af9020

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cme/crackmapexec.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,11 @@ def main():
260260
module_server.start()
261261
setattr(protocol_object, 'server', module_server.server)
262262

263+
if (args.ntds and not args.userntds):
264+
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'))
265+
if ans.lower() not in ['y', 'yes', '']:
266+
sys.exit(1)
267+
263268
try:
264269
asyncio.run(
265270
start_threadpool(protocol_object, args, db, targets, jitter)

0 commit comments

Comments
 (0)