mirror of
https://github.com/nmap/nmap.git
synced 2026-01-23 22:59:20 +00:00
Fix the test for an unmatched service in skypev2-version.nse.
Marin Maržić noticed that port.service is set even for unmatched services. We want this script to run especially for ports 80 and 443. http://seclists.org/nmap-dev/2012/q4/490
This commit is contained in:
@@ -22,7 +22,7 @@ portrule = function(host, port)
|
||||
port.service == nil or port.service == "" or
|
||||
port.service == "unknown")
|
||||
and port.protocol == "tcp" and port.state == "open"
|
||||
and port.service ~= "http" and port.service ~= "ssl/http"
|
||||
and port.version.name_confidence < 10
|
||||
and not(shortport.port_is_excluded(port.number,port.protocol))
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user