mirror of
https://github.com/nmap/nmap.git
synced 2025-12-08 21:51:28 +00:00
merge soc07 r5109, r5117 - Modified some of the scripts to use NSELib for portrule
This commit is contained in:
@@ -5,20 +5,9 @@ license = "See nmaps COPYING for licence"
|
||||
|
||||
categories = {"intrusive"}
|
||||
|
||||
portrule = function(host, port)
|
||||
if ( port.number == 443
|
||||
or port.service == "ssl/http"
|
||||
or port.service == "ssl"
|
||||
or port.service == "https")
|
||||
and port.protocol == "tcp"
|
||||
and port.state == "open"
|
||||
then
|
||||
return true
|
||||
else
|
||||
return false
|
||||
end
|
||||
require "shortport"
|
||||
|
||||
end
|
||||
portrule = shortport.port_or_service(443, {"ssl/http", "ssl", "https"})
|
||||
|
||||
hex2dec = function(hex)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user