2006-01-06 02:25:47 +00:00
|
|
|
require 'msf/core'
|
|
|
|
|
|
|
|
module Msf
|
|
|
|
|
|
|
|
###
|
|
|
|
#
|
|
|
|
# This class provides common options for certain alphanumeric encoders.
|
|
|
|
#
|
|
|
|
###
|
|
|
|
class Encoder::Alphanum < Msf::Encoder
|
|
|
|
|
|
|
|
def initialize(info)
|
|
|
|
super(info)
|
|
|
|
|
|
|
|
off = 0
|
|
|
|
|
|
|
|
register_options(
|
|
|
|
[
|
2006-09-10 05:10:48 +00:00
|
|
|
OptString.new('BufferRegister', [ false, "The register that pointers to the encoded payload" ]),
|
2009-11-08 00:45:51 +00:00
|
|
|
OptInt.new('BufferOffset', [ false, "The offset to the buffer from the start of the register", off ]),
|
|
|
|
OptBool.new('AllowWin32SEH', [ true, "Use SEH to determine the address of the stub (Windows only)", false ])
|
2006-01-06 02:25:47 +00:00
|
|
|
], Msf::Encoder::Alphanum)
|
|
|
|
end
|
2009-11-08 00:45:51 +00:00
|
|
|
|
|
|
|
end
|
|
|
|
|
2006-01-06 02:25:47 +00:00
|
|
|
end
|
|
|
|
|