Files
metasploit-gs/modules/nops/php/generic.rb
T
William Vu 64452de06d Fix msf/core and self.class msftidy warnings
Also fixed rex requires.
2017-05-03 15:44:51 -05:00

32 lines
690 B
Ruby

##
# This module requires Metasploit: http://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
###
#
# This class implements a "nop" generator for PHP payloads
#
###
class MetasploitModule < Msf::Nop
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
# Generate valid PHP code up to the requested length
def generate_sled(length, opts = {})
# Default to just spaces for now
" " * length
end
end