mirror of
https://github.com/nmap/nmap.git
synced 2025-12-15 20:29:03 +00:00
Remove many ERROR outputs from non-debug NSE output
This commit is contained in:
@@ -2,6 +2,7 @@ local anyconnect = require('anyconnect')
|
||||
local shortport = require('shortport')
|
||||
local vulns = require('vulns')
|
||||
local sslcert = require('sslcert')
|
||||
local stdnse = require "stdnse"
|
||||
|
||||
description = [[
|
||||
Detects whether the Cisco ASA appliance is vulnerable to the Cisco ASA SIP
|
||||
@@ -68,7 +69,7 @@ The SIP inspection engine in Cisco Adaptive Security Appliance (ASA) Software 8.
|
||||
local ac = anyconnect.Cisco.AnyConnect:new(host, port)
|
||||
local status, err = ac:connect()
|
||||
if not status then
|
||||
return ("\n ERROR: %s"):format(err)
|
||||
return stdnse.format_output(false, err)
|
||||
else
|
||||
local ver = ac:get_version()
|
||||
if vuln_versions[ver['major']] and vuln_versions[ver['major']][ver['minor']] then
|
||||
|
||||
Reference in New Issue
Block a user