mirror of
https://github.com/nmap/nmap.git
synced 2025-12-15 20:29:03 +00:00
Fix the indexing of Globals - found with the help of strict.lua
This commit is contained in:
@@ -175,9 +175,10 @@ local function get_random_string(length, set)
|
|||||||
local str = ""
|
local str = ""
|
||||||
|
|
||||||
-- Seed the random number, if we haven't already
|
-- Seed the random number, if we haven't already
|
||||||
if(random_set == false) then
|
if not nmap.registry.smbbrute or not nmap.registry.smbbrute.seeded then
|
||||||
math.randomseed(os.time())
|
math.randomseed(os.time())
|
||||||
random_set = true
|
nmap.registry.smbbrute = {}
|
||||||
|
nmap.registry.smbbrute.seeded = true
|
||||||
end
|
end
|
||||||
|
|
||||||
for i = 1, length, 1 do
|
for i = 1, length, 1 do
|
||||||
|
|||||||
Reference in New Issue
Block a user