mirror of
https://github.com/nmap/nmap.git
synced 2026-02-08 14:36:33 +00:00
nse_check_globals cleanup
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
local nmap = require "nmap"
|
||||
local string = require "string"
|
||||
local shortport = require "shortport"
|
||||
local stdnse = require "stdnse"
|
||||
local table = require "table"
|
||||
@@ -131,7 +133,8 @@ local check_npn = function(response)
|
||||
end
|
||||
|
||||
-- Get the server hello length
|
||||
_, shlength = bin.unpack(">S", response, 4)
|
||||
local _
|
||||
_, shlength = bin.unpack(">S", response, 4)
|
||||
local serverhello = string.sub(response, 6, 6 + shlength)
|
||||
|
||||
-- If server didn't return TLS NPN extension
|
||||
|
||||
Reference in New Issue
Block a user