Files
metasploit-gs/modules/nops/php/generic.rb
T
HD Moore ffc626675b Initial support for PHP payloads
git-svn-id: file:///home/svn/framework3/trunk@4215 4d416f70-5f16-0410-b530-b9f4589650da
2006-12-17 07:57:51 +00:00

34 lines
621 B
Ruby

require 'msf/core'
module Msf
module Nops
module Php
###
#
# This class implements a "nop" generator for PHP payloads
#
###
class Generic < Msf::Nop
def initialize
super(
'Name' => 'PHP Nop Generator',
'Alias' => 'php_generic',
'Version' => '$Revision: 3425 $',
'Description' => 'Generates harmless padding for PHP scripts',
'Author' => 'hdm',
'License' => MSF_LICENSE,
'Arch' => ARCH_PHP)
end
# Generate valid PHP code up to the requested length
def generate_sled(length, opts = {})
# Default to just spaces for now
" " * length
end
end
end end end