Files
metasploit-gs/lib/msf/core/encoder/alphanum.rb
T
Matt Miller 237af88317 update to encoder and exploit classes to support target/exploit specific encoder type/encoder options
git-svn-id: file:///home/svn/incoming/trunk@3315 4d416f70-5f16-0410-b530-b9f4589650da
2006-01-06 02:25:47 +00:00

29 lines
556 B
Ruby

require 'msf/core'
module Msf
###
#
# This class provides common options for certain alphanumeric encoders.
#
###
class Encoder::Alphanum < Msf::Encoder
def initialize(info)
super(info)
# Defaults based on architecture.
reg = 'EAX' if (arch?(ARCH_X86))
off = 0
register_options(
[
OptString.new('BufferRegister', [ true, "The register that pointers to the encoded payload", reg ]),
OptInt.new('BufferOffset', [ true, "The offset to the buffer from the start of the register", off ])
], Msf::Encoder::Alphanum)
end
end
end