From b402b11dfc877718a3885ee84942549d4f3669a7 Mon Sep 17 00:00:00 2001 From: gabrielg5 Date: Fri, 9 Aug 2024 11:11:50 -0300 Subject: [PATCH 1/2] Logging multirelay status on ntlmrelayx.py --- examples/ntlmrelayx.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/examples/ntlmrelayx.py b/examples/ntlmrelayx.py index d892912e9..bd7615ec1 100644 --- a/examples/ntlmrelayx.py +++ b/examples/ntlmrelayx.py @@ -496,6 +496,17 @@ def stop_servers(threads): c = start_servers(options, threads) + # Log multirelay flag status + if options.no_multirelay: + logging.info("Multirelay disabled") + else: + if not options.no_smb_server and not options.no_http_server: + logging.info("Multirelay enabled for HTTP and SMB servers") + elif not options.no_smb_server: + logging.info("Multirelay enabled for SMB server") + elif not options.no_http_server: + logging.info("Multirelay enabled for HTTP server") + print("") logging.info("Servers started, waiting for connections") try: From 109ae698ec9c796c7c73ee5261ec969e12b58089 Mon Sep 17 00:00:00 2001 From: gabrielg5 Date: Thu, 15 Aug 2024 16:23:35 -0300 Subject: [PATCH 2/2] Logging multirelay status just enabled / disabled --- examples/ntlmrelayx.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/examples/ntlmrelayx.py b/examples/ntlmrelayx.py index bd7615ec1..d5dbba816 100644 --- a/examples/ntlmrelayx.py +++ b/examples/ntlmrelayx.py @@ -500,12 +500,7 @@ def stop_servers(threads): if options.no_multirelay: logging.info("Multirelay disabled") else: - if not options.no_smb_server and not options.no_http_server: - logging.info("Multirelay enabled for HTTP and SMB servers") - elif not options.no_smb_server: - logging.info("Multirelay enabled for SMB server") - elif not options.no_http_server: - logging.info("Multirelay enabled for HTTP server") + logging.info("Multirelay enabled") print("") logging.info("Servers started, waiting for connections")