2012-06-29 00:18:28 -05:00
|
|
|
# -*- coding: binary -*-
|
2020-05-02 21:48:31 -05:00
|
|
|
|
2006-01-06 02:25:47 +00:00
|
|
|
|
|
|
|
|
module Msf
|
2020-05-02 21:48:31 -05:00
|
|
|
###
|
|
|
|
|
#
|
|
|
|
|
# This class provides common options for certain alphanumeric encoders.
|
|
|
|
|
#
|
|
|
|
|
###
|
|
|
|
|
class Encoder::Alphanum < Msf::Encoder
|
|
|
|
|
|
|
|
|
|
def initialize(info)
|
|
|
|
|
super(info)
|
|
|
|
|
|
|
|
|
|
register_options(
|
|
|
|
|
[
|
|
|
|
|
OptString.new('BufferRegister', [ false, 'The register that points to the encoded payload' ]),
|
2020-05-03 20:37:13 -05:00
|
|
|
OptInt.new('BufferOffset', [ false, 'The offset to the buffer from the start of the register', 0 ]),
|
2020-05-02 21:48:31 -05:00
|
|
|
OptBool.new('AllowWin32SEH', [ true, 'Use SEH to determine the address of the stub (Windows only)', false ])
|
|
|
|
|
], Msf::Encoder::Alphanum
|
|
|
|
|
)
|
|
|
|
|
end
|
2006-01-06 02:25:47 +00:00
|
|
|
|
|
|
|
|
end
|
|
|
|
|
end
|