metasploit-framework/modules/nops/php/generic.rb

34 lines
704 B
Ruby
Raw Normal View History

##
# This module requires Metasploit: http//metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
require 'msf/core'
###
#
# This class implements a "nop" generator for PHP payloads
#
###
class Metasploit3 < Msf::Nop
2013-08-30 21:28:54 +00:00
def initialize
super(
'Name' => 'PHP Nop Generator',
'Alias' => 'php_generic',
'Description' => 'Generates harmless padding for PHP scripts',
'Author' => 'hdm',
'License' => MSF_LICENSE,
'Arch' => ARCH_PHP)
end
2013-08-30 21:28:54 +00:00
# Generate valid PHP code up to the requested length
def generate_sled(length, opts = {})
# Default to just spaces for now
" " * length
end
end