From e9c3e8ee50a37be5f365aa2327d06c1147b5aaa7 Mon Sep 17 00:00:00 2001 From: "Joshua J. Drake" Date: Sun, 27 Nov 2011 19:27:01 -0600 Subject: [PATCH] Fix SMB_COM_NT_TRANSACT structure definition per specification. For more information see http://j.mp/t5zzku --- lib/rex/proto/smb/constants.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rex/proto/smb/constants.rb b/lib/rex/proto/smb/constants.rb index 81659db023..204ae788cb 100644 --- a/lib/rex/proto/smb/constants.rb +++ b/lib/rex/proto/smb/constants.rb @@ -732,8 +732,8 @@ SMB_NTTRANS_HDR_PKT = Rex::Struct2::CStructTemplate.new( [ 'uint32v', 'DataCount', 0 ], [ 'uint32v', 'DataOffset', 0 ], [ 'uint8', 'SetupCount', 0 ], - [ 'string', 'SetupData', nil, '' ], [ 'uint16v', 'Subcommand', 0 ], + [ 'string', 'SetupData', nil, '' ], [ 'uint16v', 'ByteCount', 0 ], [ 'string', 'Payload', nil, '' ] ).create_restraints(