From 4943b4c6941c3748207e0ac987a6eb587f47795e Mon Sep 17 00:00:00 2001 From: HD Moore Date: Tue, 15 May 2012 23:05:22 -0500 Subject: [PATCH] Bug fix from mubix (ruby 1.8 syntax) --- modules/auxiliary/server/socks_unc.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/auxiliary/server/socks_unc.rb b/modules/auxiliary/server/socks_unc.rb index d159e3d183..de5891fd53 100644 --- a/modules/auxiliary/server/socks_unc.rb +++ b/modules/auxiliary/server/socks_unc.rb @@ -81,8 +81,8 @@ class Metasploit3 < Msf::Auxiliary return if !(req and req.length > 2) # Versions - case req[0] - when 0x04 + case req[0,1] + when "\x04" sver, sreq, sport, shost, suser, sname = req.unpack('CCnA4Z*Z*') @@ -102,7 +102,7 @@ class Metasploit3 < Msf::Auxiliary client.put("\x00\x5a\x00\x00\x00\x00\x00\x00") - when 0x05 + when "\x05" sver, scnt, sauth = req.unpack('CCA*') client.put("\x05\x00")