return to bin.pack
This commit is contained in:
parent
bfb7788df0
commit
7790369ac1
@ -28,7 +28,7 @@ local stdnse = require "stdnse"
|
|||||||
local smb = require "smb"
|
local smb = require "smb"
|
||||||
local smb2 = require "smb2"
|
local smb2 = require "smb2"
|
||||||
local msrpc = require "msrpc"
|
local msrpc = require "msrpc"
|
||||||
local string = require "string"
|
local bin = require "bin"
|
||||||
|
|
||||||
action = function(host)
|
action = function(host)
|
||||||
local status, shares, extra
|
local status, shares, extra
|
||||||
@ -76,7 +76,7 @@ function get_share_info(host, share)
|
|||||||
|
|
||||||
stdnse.debug1("SMB: Getting information for share: %s", path)
|
stdnse.debug1("SMB: Getting information for share: %s", path)
|
||||||
|
|
||||||
local status, err = send_transaction2(smbstate, TRANS2_QUERY_FS_INFORMATION, string.pack("<S", SMB_QUERY_FS_SIZE_INFO))
|
local status, err = send_transaction2(smbstate, TRANS2_QUERY_FS_INFORMATION, bin.pack("<S", SMB_QUERY_FS_SIZE_INFO))
|
||||||
if ( not(status) ) then
|
if ( not(status) ) then
|
||||||
status, err = smb.stop(smbstate)
|
status, err = smb.stop(smbstate)
|
||||||
return false, "Failed to send data to server: send_transaction2"
|
return false, "Failed to send data to server: send_transaction2"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user