Update portscan.py

This commit is contained in:
Namhyeon Go 2022-02-04 17:17:43 +09:00 committed by GitHub
parent f20817a12c
commit 116ef2574a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@ def main(args):
(options, args) = parser.parse_args()
nm = nmap.PortScanner(nmap_search_path=('bin/nmap-7.92/nmap',))
result = nm.scan(hosts=options.hosts, arguments='-sV')
result = nm.scan(hosts=options.hosts, arguments='-T5 -sV -p21-25,80,139,443,445,1883,2179,2323,3389,7547,8080,8443,8883')
print(json.dumps(result))