1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-11-12 11:52:01 +01:00
metasploit-framework/modules/nops/x86/opty2.rb
Matt Miller be79a295b7 opty2 ported
git-svn-id: file:///home/svn/incoming/trunk@2952 4d416f70-5f16-0410-b530-b9f4589650da
2005-10-02 19:32:52 +00:00

39 lines
628 B
Ruby

require 'msf/core'
require 'rex/nop/opty2'
module Msf
module Nops
module X86
###
#
# Opty2
# -----
#
# This class implements single-byte NOP generation for X86. It takes from
# ADMmutate and from spoonfu.
#
###
class Opty2 < Msf::Nop
def initialize
super(
'Name' => 'Opty2',
'Version' => '$Revision$',
'Description' => 'Opty2 multi-byte NOP generator',
'Author' => [ 'spoonm', 'optyx' ],
'Arch' => ARCH_X86)
end
def generate_sled(length, opts)
opty = Rex::Nop::Opty2.new(
opts['BadChars'] || '',
opts['SaveRegisters'])
opty.generate_sled(length)
end
end
end end end