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-b9f4589650daunstable
parent
b198631746
commit
b42cc67e54
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue