diff --git a/nselib/msrpc.lua b/nselib/msrpc.lua
index 6810d681a..a85fa8a1e 100644
--- a/nselib/msrpc.lua
+++ b/nselib/msrpc.lua
@@ -660,7 +660,7 @@ function srvsvc_netservergetstatistics(smbstate, server)
stdnse.print_debug(2, "MSRPC: Calling NetServerGetStatistics() [%s]", smbstate['ip'])
-- [in] [string,charset(UTF16)] uint16 *server_unc,
- arguments = msrpctypes.marshall_unicode_ptr(server_unc, true)
+ arguments = msrpctypes.marshall_unicode_ptr(server, true)
-- [in] [string,charset(UTF16)] uint16 *service,
arguments = arguments .. msrpctypes.marshall_unicode_ptr(service, true)
diff --git a/nselib/msrpctypes.lua b/nselib/msrpctypes.lua
index 4eac264b4..ea4a7c92f 100644
--- a/nselib/msrpctypes.lua
+++ b/nselib/msrpctypes.lua
@@ -199,7 +199,7 @@ function unicode_to_string(buffer, pos, length, do_null)
pos = pos + 2
end
- stdnse.print_debug(4, "MSRPC: Leaving unicode_to_string()", i, count)
+ stdnse.print_debug(4, "MSRPC: Leaving unicode_to_string()")
return pos, string
end
@@ -910,7 +910,7 @@ function marshall_int16_ptr(int16, pad)
local result
stdnse.print_debug(4, string.format("MSRPC: Entering marshall_int16_ptr()"))
- result = marshall_ptr(ALL, marshal_int16, {int16, pad}, int16)
+ result = marshall_ptr(ALL, marshall_int16, {int16, pad}, int16)
stdnse.print_debug(4, string.format("MSRPC: Leaving marshall_int16_ptr()"))
return result
@@ -928,7 +928,7 @@ function marshall_int8_ptr(int8, pad)
local result
stdnse.print_debug(4, string.format("MSRPC: Entering marshall_int8_ptr()"))
- result = marshall_ptr(ALL, marshal_int8, {int8, pad}, int8)
+ result = marshall_ptr(ALL, marshall_int8, {int8, pad}, int8)
stdnse.print_debug(4, string.format("MSRPC: Leaving marshall_int8_ptr()"))
return result
@@ -4251,7 +4251,7 @@ function unmarshall_svcctl_Type(data, pos)
return pos, str
end
----Convert a svcctl_Type value to a string that can be shown to the user. This is
+--[[Convert a svcctl_Type value to a string that can be shown to the user. This is
-- based on the _str table.
--
--@param val The string value (returned by the unmarshall_ function) to convert.
@@ -4264,7 +4264,7 @@ function svcctl_Type_tostr(val)
stdnse.print_debug(4, string.format("MSRPC: Leaving svcctl_Type_tostr()"))
return result
-end
+end]]--
@@ -4305,7 +4305,7 @@ function unmarshall_svcctl_State(data, pos)
return pos, str
end
----Convert a svcctl_State value to a string that can be shown to the user. This is
+--[[Convert a svcctl_State value to a string that can be shown to the user. This is
-- based on the _str table.
--
--@param val The string value (returned by the unmarshall_ function) to convert.
@@ -4318,7 +4318,7 @@ function svcctl_State_tostr(val)
stdnse.print_debug(4, string.format("MSRPC: Leaving svcctl_State_tostr()"))
return result
-end
+end]]--
---Unmarshall a SERVICE_STATUS struct, converting it to a table. The structure is as
diff --git a/nselib/smb.lua b/nselib/smb.lua
index 470bb24ec..053de699b 100644
--- a/nselib/smb.lua
+++ b/nselib/smb.lua
@@ -1253,7 +1253,7 @@ function start_session_extended(smb, overrides, use_default, log_errors)
-- This loop takes care of the multiple packets that "extended security" requires
repeat
-- Get the new security blob, passing the old security blob as a parameter. If there was no previous security blob, then nil is passed, which creates a new one
- status, security_blob, smb['mac_key'] = smbauth.get_security_blob(security_blob, smb['ip'], accounts[i]['username'], accounts[i]['domain'], accounts[i]['hash_type'], overrides, use_defaults)
+ status, security_blob, smb['mac_key'] = smbauth.get_security_blob(security_blob, smb['ip'], accounts[i]['username'], accounts[i]['domain'], accounts[i]['hash_type'], overrides, use_default)
-- There was an error processing the security blob
if(status == false) then
@@ -1789,9 +1789,9 @@ function write_file(smb, write_data, offset)
end
-- Parse the parameters
- local reserved, count_high, remaining, count_low
- pos, andx_command, andx_reserved, andx_offset, count_low, remaining, count_high, reserved = bin.unpack("