From bf8ea7be95e80fd7add90fa3d2cc02ec8100b1aa Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Tue, 9 Jul 2024 15:53:34 +0900 Subject: [PATCH] One more fix #24 --- plugins/nmap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/nmap.py b/plugins/nmap.py index 112028c..ecf0238 100644 --- a/plugins/nmap.py +++ b/plugins/nmap.py @@ -7,7 +7,7 @@ # Namyheon Go (Catswords Research) # https://github.com/gnh1201/caterpillar # Created at: 2022-01-26 (github.com/gnh1201/welsonjs) -# Updated at: 2024-07-04 +# Updated at: 2024-07-09 # import sys import nmap @@ -25,7 +25,7 @@ def dispatch(self, type, id, params, conn): hosts = params['hosts'] binpath = params['binpath'] - #result = nm.scan(hosts=hosts, arguments='-T5 -sV -p21-25,80,139,443,445,1883,2179,2323,3389,7547,8080,8443,8883') + nm = nmap.PortScanner(nmap_search_path=(binpath,)) result = nm.scan(hosts=hosts, arguments='-T5 -sV -p0-65535 --max-retries 0') return result;