mirror of
https://github.com/nmap/nmap.git
synced 2026-08-31 23:40:57 +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:
parent
eb74e27faf
commit
de460c242e
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue