Path: blob/master/modules/nops/x86/opty2.rb
24699 views
##1# This module requires Metasploit: https://metasploit.com/download2# Current source: https://github.com/rapid7/metasploit-framework3##45require 'rex/nop/opty2'67###8#9# Opty210# -----11#12# This class implements single-byte NOP generation for X86. It takes from13# ADMmutate and from spoonfu.14#15###16class MetasploitModule < Msf::Nop1718def initialize19super(20'Name' => 'Opty2',21'Description' => 'Opty2 multi-byte NOP generator',22'Author' => [ 'spoonm', 'optyx' ],23'License' => MSF_LICENSE,24'Arch' => ARCH_X86)25end2627def generate_sled(length, opts = {})28opty = Rex::Nop::Opty2.new(29opts['BadChars'] || '',30opts['SaveRegisters']31)3233opty.generate_sled(length)34end35end363738