mirror of
https://github.com/nmap/nmap.git
synced 2025-12-11 02:09:03 +00:00
Restrict http-cisco-anyconnect to https. Closes #62
This commit is contained in:
@@ -2,7 +2,6 @@ local anyconnect = require('anyconnect')
|
|||||||
local stdnse = require('stdnse')
|
local stdnse = require('stdnse')
|
||||||
local shortport = require('shortport')
|
local shortport = require('shortport')
|
||||||
local nmap = require('nmap')
|
local nmap = require('nmap')
|
||||||
local sslcert = require('sslcert')
|
|
||||||
|
|
||||||
description = [[
|
description = [[
|
||||||
Connect as Cisco AnyConnect client to a Cisco SSL VPN and retrieves version
|
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"}
|
categories = {"default", "discovery", "safe"}
|
||||||
|
|
||||||
portrule = function(host, port)
|
portrule = function(host, port)
|
||||||
return shortport.ssl(host, port) or sslcert.isPortSupported(port)
|
return shortport.ssl(host, port) and shortport.http(host, port)
|
||||||
end
|
end
|
||||||
|
|
||||||
action = function(host, port)
|
action = function(host, port)
|
||||||
|
|||||||
Reference in New Issue
Block a user