mirror of
https://github.com/nmap/nmap.git
synced 2026-01-06 14:39:03 +00:00
nse_check_global cleanup
This commit is contained in:
@@ -3,6 +3,7 @@ local packet = require "packet"
|
||||
local ipOps = require "ipOps"
|
||||
local bin = require "bin"
|
||||
local stdnse = require "stdnse"
|
||||
local string = require "string"
|
||||
local target = require "target"
|
||||
local table = require "table"
|
||||
|
||||
@@ -107,7 +108,7 @@ local mrinfoListen = function(interface, host, timeout, results)
|
||||
local condvar = nmap.condvar(results)
|
||||
local start = nmap.clock_ms()
|
||||
local listener = nmap.new_socket()
|
||||
local p, mrinfo_raw, status, l3data, response
|
||||
local p, mrinfo_raw, status, l3data, response, _
|
||||
-- IGMP packets that are sent from the target host to our host.
|
||||
local filter = 'ip proto 2 and src host ' .. host.ip .. ' and dst host ' .. interface.address
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
local bin = require "bin"
|
||||
local io = require "io"
|
||||
local msrpc = require "msrpc"
|
||||
local smb = require "smb"
|
||||
local string = require "string"
|
||||
@@ -87,7 +88,7 @@ action = function(host,port)
|
||||
local data = lanman_result.data
|
||||
local pos, status, convert, entry_count, available_entries = bin.unpack("<SSSS", parameters)
|
||||
pos = 0
|
||||
local share_type
|
||||
local share_type, name, _
|
||||
for i = 1, entry_count, 1 do
|
||||
_,share_type = bin.unpack(">s",data,pos+14)
|
||||
pos, name = bin.unpack("<z", data, pos)
|
||||
|
||||
Reference in New Issue
Block a user