mirror of
https://github.com/nmap/nmap.git
synced 2025-12-15 12:19:02 +00:00
Fix nil value reference
This commit is contained in:
@@ -45,7 +45,7 @@ portrule = shortport.http
|
|||||||
|
|
||||||
action = function(host, port)
|
action = function(host, port)
|
||||||
local response = http.get(host, port, "/", { redirect_ok = false, no_cache = true })
|
local response = http.get(host, port, "/", { redirect_ok = false, no_cache = true })
|
||||||
local server = response.header and response.header['server']
|
local server = response.header and response.header['server'] or ""
|
||||||
local vuln_table = {
|
local vuln_table = {
|
||||||
title = "Firmware backdoor in some models of D-Link routers allow for admin password bypass",
|
title = "Firmware backdoor in some models of D-Link routers allow for admin password bypass",
|
||||||
state = vulns.STATE.NOT_VULN,
|
state = vulns.STATE.NOT_VULN,
|
||||||
|
|||||||
Reference in New Issue
Block a user