From 1bf5235906626e74d7072a6614944d4ef383f122 Mon Sep 17 00:00:00 2001 From: AlessandroZ Date: Wed, 21 Dec 2016 16:40:34 +0100 Subject: [PATCH] fix port_scan bug --- pupy/packages/all/portscan.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pupy/packages/all/portscan.py b/pupy/packages/all/portscan.py index c632c975..cbd9926b 100644 --- a/pupy/packages/all/portscan.py +++ b/pupy/packages/all/portscan.py @@ -34,6 +34,9 @@ class WorkerThread(threading.Thread) : self.queue.task_done() def scan(remote_ip, ports, nb_threads, settimeout): + global open_port + open_port = [] + queue = Queue.Queue() threads = []