Fixes the ASN.1 parser to work with ruby 1.9.1

git-svn-id: file:///home/svn/framework3/trunk@7121 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2009-10-03 19:48:15 +00:00
parent b198631746
commit b42cc67e54
2 changed files with 2 additions and 4 deletions

View File

@ -186,8 +186,7 @@ class Metasploit3 < Msf::Auxiliary
def _parse_asn1(data, tree)
x = 0
while (data.length > 0)
t = data[0]
l = data[1]
t,l = data[0,2].unpack('CC')
i = 2
if (l > 0x7f)

View File

@ -184,8 +184,7 @@ class Metasploit3 < Msf::Auxiliary
def _parse_asn1(data, tree)
x = 0
while (data.length > 0)
t = data[0]
l = data[1]
t,l = data[0,2].unpack('CC')
i = 2
if (l > 0x7f)