Files
metasploit-gs/documentation/samples/modules/nops/sample.rb
T
Matt Miller a2df616bd4 devguide samples
git-svn-id: file:///home/svn/incoming/trunk@3154 4d416f70-5f16-0410-b530-b9f4589650da
2005-11-28 23:49:48 +00:00

34 lines
533 B
Ruby

require 'msf/core'
module Msf
module Nops
###
#
# This class implements a very basic NOP sled generator that just returns a
# string of 0x90's.
#
###
class Sample < Msf::Nop
def initialize
super(
'Name' => 'Sample NOP generator',
'Version' => '$Revision$',
'Description' => 'Sample single-byte NOP generator',
'Author' => 'skape',
'Arch' => ARCH_X86)
end
#
# Returns a string of 0x90's for the supplied length.
#
def generate_sled(length, opts)
"\x90" * length
end
end
end
end