From 34be642f840aa19fc7ef7d8caa9c26c01278bb19 Mon Sep 17 00:00:00 2001 From: Tod Beardsley Date: Wed, 6 Jun 2012 10:40:56 -0500 Subject: [PATCH] msftidy found EOL spaces on new modules --- modules/auxiliary/scanner/pcanywhere/pcanywhere_login.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/auxiliary/scanner/pcanywhere/pcanywhere_login.rb b/modules/auxiliary/scanner/pcanywhere/pcanywhere_login.rb index 7553210d16..119af14262 100644 --- a/modules/auxiliary/scanner/pcanywhere/pcanywhere_login.rb +++ b/modules/auxiliary/scanner/pcanywhere/pcanywhere_login.rb @@ -159,7 +159,7 @@ class Metasploit3 < Msf::Auxiliary return '' unless data.kind_of? String encrypted = '' encrypted << ( data.unpack('C')[0] ^ 0xab ) - data.bytes.each_with_index do |byte, idx| + data.bytes.each_with_index do |byte, idx| next if idx == 0 encrypted << ( encrypted[(idx - 1),1].unpack('C')[0] ^ byte ^ (idx - 1) ) end