mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
fixed undeclared variables
This commit is contained in:
@@ -51,7 +51,7 @@ action = function(host, port)
|
|||||||
|
|
||||||
-- Retrieve file
|
-- Retrieve file
|
||||||
stdnse.print_debug(1, ("%s: Connecting to %s:%s"):format(SCRIPT_NAME, host.targetname or host.ip, port.number))
|
stdnse.print_debug(1, ("%s: Connecting to %s:%s"):format(SCRIPT_NAME, host.targetname or host.ip, port.number))
|
||||||
data = http.get(host, port, path)
|
local data = http.get(host, port, path)
|
||||||
|
|
||||||
-- Check if file exists
|
-- Check if file exists
|
||||||
if data and data.status and data.status == 200 and data.body and data.body ~= "" then
|
if data and data.status and data.status == 200 and data.body and data.body ~= "" then
|
||||||
|
|||||||
Reference in New Issue
Block a user