From ddfe651bc8df3c69758db4e357aee84fe7701d98 Mon Sep 17 00:00:00 2001 From: HD Moore Date: Tue, 15 May 2007 16:48:15 +0000 Subject: [PATCH] This adds support for smb_pipeio=trans git-svn-id: file:///home/svn/framework3/trunk@4915 4d416f70-5f16-0410-b530-b9f4589650da --- lib/rex/proto/smb/simpleclient.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/rex/proto/smb/simpleclient.rb b/lib/rex/proto/smb/simpleclient.rb index 1cf10b4ca5..dfb4eaa679 100644 --- a/lib/rex/proto/smb/simpleclient.rb +++ b/lib/rex/proto/smb/simpleclient.rb @@ -157,9 +157,10 @@ EVADE = Rex::Proto::SMB::Evasions end def write_trans(data, offset=0) - # Payload is not being filled the the response !?!!? ack = self.client.trans_named_pipe(self.file_id, data) - @buff << ack['Payload'].v['Payload'] + doff = ack['Payload'].v['DataOffset'] + dlen = ack['Payload'].v['DataCount'] + @buff << ack.to_s[4+doff, dlen] end end