1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-06 14:39:03 +00:00

Remove bin.lua from a few more scripts

This commit is contained in:
dmiller
2018-09-03 22:14:16 +00:00
parent 69dd30727d
commit 6d8e307ac8
5 changed files with 57 additions and 67 deletions

View File

@@ -1,4 +1,3 @@
local bin = require "bin"
local os = require "os"
local datetime = require "datetime"
local mssql = require "mssql"
@@ -77,12 +76,12 @@ action = function(host, port)
local recvtime = os.time()
tdsstream:Disconnect()
local pos, ttype = bin.unpack("C", response)
local ttype, pos = string.unpack("B", response)
if ttype ~= mssql.TokenType.NTLMSSP_CHALLENGE then
return nil
end
local pos, data = bin.unpack("<P", response, pos)
local data, pos = string.unpack("<s2", response, pos)
if not string.match(data, "^NTLMSSP") then
return nil
end