2007-02-18 00:10:39 +00:00
|
|
|
##
|
2013-10-15 18:50:46 +00:00
|
|
|
# This module requires Metasploit: http//metasploit.com/download
|
|
|
|
# Current source: https://github.com/rapid7/metasploit-framework
|
2007-02-18 00:10:39 +00:00
|
|
|
##
|
|
|
|
|
|
|
|
|
2005-10-02 19:32:52 +00:00
|
|
|
require 'msf/core'
|
|
|
|
require 'rex/nop/opty2'
|
|
|
|
|
|
|
|
|
|
|
|
###
|
|
|
|
#
|
|
|
|
# Opty2
|
|
|
|
# -----
|
|
|
|
#
|
|
|
|
# This class implements single-byte NOP generation for X86. It takes from
|
|
|
|
# ADMmutate and from spoonfu.
|
|
|
|
#
|
|
|
|
###
|
2008-10-02 05:23:59 +00:00
|
|
|
class Metasploit3 < Msf::Nop
|
2005-10-02 19:32:52 +00:00
|
|
|
|
2013-08-30 21:28:54 +00:00
|
|
|
def initialize
|
|
|
|
super(
|
|
|
|
'Name' => 'Opty2',
|
|
|
|
'Description' => 'Opty2 multi-byte NOP generator',
|
|
|
|
'Author' => [ 'spoonm', 'optyx' ],
|
|
|
|
'License' => MSF_LICENSE,
|
|
|
|
'Arch' => ARCH_X86)
|
|
|
|
end
|
|
|
|
|
|
|
|
def generate_sled(length, opts = {})
|
|
|
|
opty = Rex::Nop::Opty2.new(
|
|
|
|
opts['BadChars'] || '',
|
|
|
|
opts['SaveRegisters'])
|
|
|
|
|
|
|
|
opty.generate_sled(length)
|
|
|
|
end
|
2005-10-02 19:32:52 +00:00
|
|
|
|
2012-03-18 05:07:27 +00:00
|
|
|
end
|