From 2199d2bf48281ae880940b623fe114dcfd801c4d Mon Sep 17 00:00:00 2001 From: Duncan Greene Date: Thu, 21 May 2026 10:52:35 +0100 Subject: [PATCH] Run TCP and UDP port scans consecutively --- modules/test/services/python/src/services_module.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/test/services/python/src/services_module.py b/modules/test/services/python/src/services_module.py index ea925b6e9..254d01410 100644 --- a/modules/test/services/python/src/services_module.py +++ b/modules/test/services/python/src/services_module.py @@ -170,11 +170,10 @@ def _run_nmap(self): self._udp_scan_thread.daemon = True self._tcp_scan_thread.start() - self._udp_scan_thread.start() + self._tcp_scan_thread.join() - while (self._tcp_scan_thread.is_alive() - or self._udp_scan_thread.is_alive()): - time.sleep(1) + self._udp_scan_thread.start() + self._udp_scan_thread.join() LOGGER.debug('TCP scan results: ' + str(self._scan_tcp_results)) LOGGER.debug('UDP scan results: ' + str(self._scan_udp_results))