From f91c3d0136f154016d8a16cef281b73027b1312d Mon Sep 17 00:00:00 2001 From: ron Date: Wed, 9 Jun 2010 01:31:28 +0000 Subject: [PATCH] Added a minor patch contributed by the Nepenthes Development Team. It changes the 'alloc hint' argument to be the expected value, which happens to be the size of the arguments, instead of the static value I was using. No target I've ever seen cares about the value of this argument, but this brings us slightly more in line with the standard --- nselib/msrpc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nselib/msrpc.lua b/nselib/msrpc.lua index 26962445b..52e186968 100644 --- a/nselib/msrpc.lua +++ b/nselib/msrpc.lua @@ -311,7 +311,7 @@ local function call_function(smbstate, opnum, arguments) 0x18 + string.len(arguments), -- Frag length (0x18 = the size of this data) 0x0000, -- Auth length 0x41414141, -- Call ID (I use 'AAAA' because it's easy to recognize) - 0x00000038, -- Alloc hint + 0x0 + string.len(arguments), -- Alloc hint 0x0000, -- Context ID opnum, -- Opnum arguments