mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Make a variable local
This commit is contained in:
parent
7c61f7c9c3
commit
51180ec958
1 changed files with 2 additions and 3 deletions
|
|
@ -40,16 +40,15 @@ hostrule = function(host)
|
|||
end
|
||||
|
||||
action = function(host,port)
|
||||
local status, smbstate
|
||||
local output = stdnse.output_table()
|
||||
|
||||
status, smbstate = smb.start(host)
|
||||
local status, smbstate = smb.start(host)
|
||||
if(status == false) then
|
||||
return false, smbstate
|
||||
end
|
||||
-- SMB signing configuration appears to be global so
|
||||
-- there is no point of trying different dialects.
|
||||
status, dialect = smb2.negotiate_v2(smbstate)
|
||||
local status, dialect = smb2.negotiate_v2(smbstate)
|
||||
if status then
|
||||
local message_signing = {}
|
||||
-- Signing configuration. SMBv2 servers support two flags:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue