From 65670cd33ec9f57308efcfcac6c7d03a40906985 Mon Sep 17 00:00:00 2001 From: HD Moore Date: Sun, 17 Jul 2005 08:28:52 +0000 Subject: [PATCH] multi-line fixes git-svn-id: file:///home/svn/incoming/trunk@2780 4d416f70-5f16-0410-b530-b9f4589650da --- lib/rex/proto/dcerpc/response.rb | 61 +++++++++++++++----------------- 1 file changed, 29 insertions(+), 32 deletions(-) diff --git a/lib/rex/proto/dcerpc/response.rb b/lib/rex/proto/dcerpc/response.rb index 1ea173f0c2..5300f95a95 100644 --- a/lib/rex/proto/dcerpc/response.rb +++ b/lib/rex/proto/dcerpc/response.rb @@ -47,8 +47,7 @@ class DCERPC::Response self.max_frag_xmit, self.max_frag_recv, self.assoc_group, - self.sec_addr_len, - = data.unpack('CCCCNvvVvvVv') + self.sec_addr_len = data.unpack('CCCCNvvVvvVv') # XXX This is still somewhat broken (4 digit ports) self.sec_addr = data[26, self.sec_addr_len] @@ -75,21 +74,20 @@ class DCERPC::Response # RESPONSE == 2 - if (self.type == 2) + if (self.type == 2) + # Decode the DCERPC response header - ( - self.vers_major, - self.vers_minor, - trash, - self.flags, - self.data_rep, - self.frag_len, - self.auth_len, - self.call_id, - self.alloc_hint, - self.context_id, - self.cancel_cnt, - ) = data.unpack('CCCCNvvVVvC') + self.vers_major, + self.vers_minor, + trash, + self.flags, + self.data_rep, + self.frag_len, + self.auth_len, + self.call_id, + self.alloc_hint, + self.context_id, + self.cancel_cnt = data.unpack('CCCCNvvVVvC') # Put the application data into self.stub_data self.stub_data = data[data.length - self.alloc_hint, 0xffff] @@ -98,23 +96,22 @@ class DCERPC::Response end # FAULT == 2 - if (self.type == 3) + if (self.type == 3) + # Decode the DCERPC response header - ( - self.vers_major, - self.vers_minor, - trash, - self.flags, - self.data_rep, - self.frag_len, - self.auth_len, - self.call_id, - self.alloc_hint, - self.context_id, - self.cancel_cnt, - trash, - self.status, - ) = data.unpack('CCCCNvvVVvCCV') + self.vers_major, + self.vers_minor, + trash, + self.flags, + self.data_rep, + self.frag_len, + self.auth_len, + self.call_id, + self.alloc_hint, + self.context_id, + self.cancel_cnt, + trash, + self.status = data.unpack('CCCCNvvVVvCCV') # Put the application data into self.stub_data self.stub_data = data[data.length - self.alloc_hint, 0xffff]