Fix 1.9.1 compat for msfelfscan

git-svn-id: file:///home/svn/framework3/trunk@6659 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2009-06-14 20:18:38 +00:00
parent 5636204767
commit 5646e02a8a
1 changed files with 2 additions and 2 deletions

View File

@ -152,8 +152,8 @@ class PopPopRetScanner < JmpRegScanner
message = ''
pops = elf.read(offset, 2)
reg1 = Rex::Arch::X86.reg_name32(pops[0] & 0x7)
reg2 = Rex::Arch::X86.reg_name32(pops[1] & 0x7)
reg1 = Rex::Arch::X86.reg_name32(pops[0,1].unpack('C*')[0] & 0x7)
reg2 = Rex::Arch::X86.reg_name32(pops[1,1].unpack('C*')[0] & 0x7)
message = "pop #{reg1}; pop #{reg2}; "