mirror of
https://github.com/nmap/nmap.git
synced 2025-12-28 10:29:03 +00:00
Whitespace/reindent cleanup in NSE. https://secwiki.org/w/Nmap/Code_Standards
This commit is contained in:
@@ -53,31 +53,31 @@ The SSL VPN implementation in Cisco Adaptive Security Appliance (ASA) Software 8
|
||||
}
|
||||
|
||||
local vuln_versions = {
|
||||
['8'] = {
|
||||
['2'] = 5.47,
|
||||
['8'] = {
|
||||
['2'] = 5.47,
|
||||
['3'] = 2.40,
|
||||
['4'] = 7.3,
|
||||
['4'] = 7.3,
|
||||
['6'] = 1.13,
|
||||
['7'] = 1.11,
|
||||
},
|
||||
['9'] = {
|
||||
['0'] = 3.8,
|
||||
['1'] = 3.2,
|
||||
},
|
||||
}
|
||||
['7'] = 1.11,
|
||||
},
|
||||
['9'] = {
|
||||
['0'] = 3.8,
|
||||
['1'] = 3.2,
|
||||
},
|
||||
}
|
||||
|
||||
local report = vulns.Report:new(SCRIPT_NAME, host, port)
|
||||
local ac = anyconnect.Cisco.AnyConnect:new(host, port)
|
||||
local ac = anyconnect.Cisco.AnyConnect:new(host, port)
|
||||
local status, err = ac:connect()
|
||||
if not status then
|
||||
return ("\n ERROR: %s"):format(err)
|
||||
else
|
||||
local ver = ac:get_version()
|
||||
if vuln_versions[ver['major']] and vuln_versions[ver['major']][ver['minor']] then
|
||||
if vuln_versions[ver['major']][ver['minor']] > tonumber(ver['rev']) then
|
||||
vuln_table.state = vulns.STATE.VULN
|
||||
end
|
||||
end
|
||||
local ver = ac:get_version()
|
||||
if vuln_versions[ver['major']] and vuln_versions[ver['major']][ver['minor']] then
|
||||
if vuln_versions[ver['major']][ver['minor']] > tonumber(ver['rev']) then
|
||||
vuln_table.state = vulns.STATE.VULN
|
||||
end
|
||||
end
|
||||
end
|
||||
return report:make_output(vuln_table)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user