1
0
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:
patrik
2012-08-05 17:59:12 +00:00
parent be92f68cad
commit 381865f342
2 changed files with 4 additions and 2 deletions

View File

@@ -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

View File

@@ -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)