mirror of
https://github.com/gnh1201/caterpillar.git
synced 2025-02-11 09:25:00 +00:00
One more fix #24
This commit is contained in:
parent
352fc3229f
commit
bf8ea7be95
|
@ -7,7 +7,7 @@
|
||||||
# Namyheon Go (Catswords Research) <gnh1201@gmail.com>
|
# Namyheon Go (Catswords Research) <gnh1201@gmail.com>
|
||||||
# https://github.com/gnh1201/caterpillar
|
# https://github.com/gnh1201/caterpillar
|
||||||
# Created at: 2022-01-26 (github.com/gnh1201/welsonjs)
|
# Created at: 2022-01-26 (github.com/gnh1201/welsonjs)
|
||||||
# Updated at: 2024-07-04
|
# Updated at: 2024-07-09
|
||||||
#
|
#
|
||||||
import sys
|
import sys
|
||||||
import nmap
|
import nmap
|
||||||
|
@ -25,7 +25,7 @@ class PortScanner(Extension):
|
||||||
hosts = params['hosts']
|
hosts = params['hosts']
|
||||||
binpath = params['binpath']
|
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')
|
result = nm.scan(hosts=hosts, arguments='-T5 -sV -p0-65535 --max-retries 0')
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user