You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nxc_logger.debug(f"Modules to be Loaded: {args.module}, {type(args.module)}")
176
+
# Check the modules for sanity before loading the protocol
177
+
nxc_logger.debug(f"Modules to be Loaded for sanity check: {args.module}, {type(args.module)}")
178
+
proto_module_paths= []
176
179
forminargs.module:
177
180
ifmnotinmodules:
178
181
nxc_logger.error(f"Module not found: {m}")
179
182
exit(1)
180
183
181
-
nxc_logger.debug(f"Loading module {m} at path {modules[m]['path']}")
184
+
nxc_logger.debug(f"Loading module for sanity check {m} at path {modules[m]['path']}")
182
185
module=loader.init_module(modules[m]["path"])
183
186
184
187
ifnotmodule.opsec_safe:
185
188
ifignore_opsec:
186
189
nxc_logger.debug("ignore_opsec is set in the configuration, skipping prompt")
187
190
nxc_logger.display("Ignore OPSEC in configuration is set and OPSEC unsafe module loaded")
188
191
else:
189
-
ans=input(
190
-
highlight(
191
-
"[!] Module is not opsec safe, are you sure you want to run this? [Y/n] For global configuration, change ignore_opsec value to True on ~/nxc/nxc.conf",
192
-
"red",
193
-
)
194
-
)
192
+
ans=input(highlight("[!] Module is not opsec safe, are you sure you want to run this? [Y/n] For global configuration, change ignore_opsec value to True on ~/nxc/nxc.conf", "red"))
195
193
ifans.lower() notin ["y", "yes", ""]:
196
194
exit(1)
197
195
198
196
ifnotmodule.multiple_hostsandlen(targets) >1:
199
-
ans=input(
200
-
highlight(
201
-
"[!] Running this module on multiple hosts doesn't really make any sense, are you sure you want to continue? [Y/n] ",
202
-
"red",
203
-
)
204
-
)
197
+
ans=input(highlight("[!] Running this module on multiple hosts doesn't really make any sense, are you sure you want to continue? [Y/n] ", "red"))
"[!] 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] ",
227
-
"red",
228
-
)
229
-
)
213
+
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"))
0 commit comments