2005-07-09 23:22:32 +02:00
|
|
|
require 'msf/core'
|
2005-05-18 08:28:12 +02:00
|
|
|
|
|
|
|
module Msf
|
|
|
|
module Encoders
|
|
|
|
module IA32
|
|
|
|
|
|
|
|
class JmpCallAdditive < Msf::Encoder::XorAdditiveFeedback
|
|
|
|
|
|
|
|
def initialize
|
|
|
|
super(
|
|
|
|
'Name' => 'Jump/Call XOR Additive Feedback',
|
2005-07-08 01:11:03 +02:00
|
|
|
'Alias' => 'ia32_jmpcalladditive',
|
2005-05-18 08:28:12 +02:00
|
|
|
'Version' => '$Revision$',
|
|
|
|
'Description' => 'Jump/Call XOR Additive Feedback',
|
|
|
|
'Author' => 'skape',
|
|
|
|
'Arch' => ARCH_IA32,
|
|
|
|
'DecoderStub' =>
|
|
|
|
"\xfc" + # cld
|
|
|
|
"\xbbXORK" + # mov ebx, key
|
|
|
|
"\xeb\x0c" + # jmp short 0x14
|
|
|
|
"\x5e" + # pop esi
|
|
|
|
"\x56" + # push esi
|
|
|
|
"\x31\x1e" + # xor [esi], ebx
|
|
|
|
"\xad" + # lodsd
|
|
|
|
"\x01\xc3" + # add ebx, eax
|
|
|
|
"\x85\xc0" + # test eax, eax
|
|
|
|
"\x75\xf7" + # jnz 0xa
|
|
|
|
"\xc3" + # ret
|
|
|
|
"\xe8\xef\xff\xff\xff", # call 0x8
|
|
|
|
'DecoderKeyOffset' => 2,
|
|
|
|
'DecoderKeySize' => 4,
|
|
|
|
'DecoderBlockSize' => 4)
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
2005-05-22 09:14:16 +02:00
|
|
|
end end end
|