From 32a7d5a1f2e29d8e77396b4501331fccf47f6442 Mon Sep 17 00:00:00 2001 From: Alexander Neff Date: Tue, 14 Apr 2026 13:20:39 +0200 Subject: [PATCH] Allow proto flags in combination with modules --- nxc/connection.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/nxc/connection.py b/nxc/connection.py index 7c47a5aa94..ec9a312342 100755 --- a/nxc/connection.py +++ b/nxc/connection.py @@ -254,13 +254,12 @@ def proto_flow(self): self.print_host_info() if self.login() or (self.username == "" and self.password == ""): - if hasattr(self.args, "module") and self.args.module: + self.logger.debug("Calling command arguments") + self.call_cmd_args() + if self.args.module: self.load_modules() self.logger.debug("Calling modules") self.call_modules() - else: - self.logger.debug("Calling command arguments") - self.call_cmd_args() self.disconnect() def call_cmd_args(self):