Skip to content

Commit 0748244

Browse files
committed
add warning before running x command
1 parent 486f47a commit 0748244

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

nxc/netexec.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ def main():
194194
proto_module_paths.append(modules[m]["path"])
195195
protocol_object.module_paths = proto_module_paths
196196

197-
if hasattr(args, "ntds") and args.ntds and not args.userntds:
198-
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 or the module -M ntdsutil [Y/n] ", "red"))
197+
if args.execute and args.protocol == "rdp":
198+
ans = input(highlight("[!] Executing remote command via RDP will lock the Windows session (not disconnect) if the targeted user is connected via RDP, do you want to continue ? [Y/n] ", "red"))
199199
if ans.lower() not in ["y", "yes", ""]:
200200
exit(1)
201201

0 commit comments

Comments
 (0)