mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +00:00
nse_check_globals cleanup
This commit is contained in:
parent
a329909fdf
commit
a18d0b2ff0
2 changed files with 5 additions and 2 deletions
|
|
@ -2,6 +2,7 @@ local rpc = require "rpc"
|
|||
local shortport = require "shortport"
|
||||
local stdnse = require "stdnse"
|
||||
local table = require "table"
|
||||
local string = require "string"
|
||||
|
||||
description = [[
|
||||
Shows NFS exports, like the <code>showmount -e</code> command.
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@ local datafiles = require "datafiles"
|
|||
local bin = require "bin"
|
||||
local math = require "math"
|
||||
local io = require "io"
|
||||
local coroutine = require "coroutine"
|
||||
local table = require "table"
|
||||
|
||||
description = [[
|
||||
Fingerprints the target RPC port to extract the target service, RPC number and version.
|
||||
|
|
@ -64,7 +66,7 @@ local isRPC = function(host, port)
|
|||
-- this check is important if we didn't run the scan with -sV.
|
||||
-- If we run the scan with -sV, this check shouldn't return true as it is pretty much similar
|
||||
-- to the "rpcbind" service probe in nmap-service-probes.
|
||||
local rpcConn, status, err, data, rxid, msgtype
|
||||
local rpcConn, status, err, data, rxid, msgtype, _
|
||||
|
||||
-- Create new socket
|
||||
-- rpcbind is not really important, we could have used another protocol from rpc.lua
|
||||
|
|
@ -151,7 +153,7 @@ end
|
|||
-- @param result table to put result into.
|
||||
local rpcGrinder = function(host, port, iterator, result)
|
||||
local condvar = nmap.condvar(result)
|
||||
local rpcConn, version, xid, status, response, packet, err, data
|
||||
local rpcConn, version, xid, status, response, packet, err, data, _
|
||||
|
||||
xid = math.random(123456789)
|
||||
-- We use a random, most likely unsupported version so that
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue