mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Restrict http-cisco-anyconnect to https. Closes #62
This commit is contained in:
parent
c19023dc0c
commit
2e57f72bb0
1 changed files with 1 additions and 2 deletions
|
|
@ -2,7 +2,6 @@ local anyconnect = require('anyconnect')
|
|||
local stdnse = require('stdnse')
|
||||
local shortport = require('shortport')
|
||||
local nmap = require('nmap')
|
||||
local sslcert = require('sslcert')
|
||||
|
||||
description = [[
|
||||
Connect as Cisco AnyConnect client to a Cisco SSL VPN and retrieves version
|
||||
|
|
@ -36,7 +35,7 @@ license = "Same as Nmap--See http://nmap.org/book/man-legal.html"
|
|||
categories = {"default", "discovery", "safe"}
|
||||
|
||||
portrule = function(host, port)
|
||||
return shortport.ssl(host, port) or sslcert.isPortSupported(port)
|
||||
return shortport.ssl(host, port) and shortport.http(host, port)
|
||||
end
|
||||
|
||||
action = function(host, port)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue