mirror of
https://github.com/nmap/nmap.git
synced 2025-12-22 07:29:01 +00:00
Fixed global assignments with nse_check_globals
All fixes made by hand. A couple real bugs/errors fixed, due to copy-paste of code from other scripts without changing variable names.
This commit is contained in:
@@ -51,6 +51,7 @@ categories = {"intrusive", "brute"}
|
||||
|
||||
local stdnse = require "stdnse"
|
||||
local shortport = require "shortport"
|
||||
local table = require "table"
|
||||
local http = require "http"
|
||||
local vulns = require "vulns"
|
||||
|
||||
@@ -169,7 +170,7 @@ cause a denial of service condition.
|
||||
end
|
||||
--Vulnerable!
|
||||
if #files>0 or #folders>0 then
|
||||
results = {}
|
||||
local results = {}
|
||||
table.insert(results, folders)
|
||||
table.insert(results, files)
|
||||
vuln.state = vulns.STATE.EXPLOIT
|
||||
|
||||
Reference in New Issue
Block a user