2009-01-13 06:46:32 +00:00
|
|
|
##
|
2014-10-17 16:47:33 +00:00
|
|
|
# This module requires Metasploit: http://metasploit.com/download
|
2013-10-15 18:50:46 +00:00
|
|
|
# Current source: https://github.com/rapid7/metasploit-framework
|
2009-01-13 06:46:32 +00:00
|
|
|
##
|
|
|
|
|
|
|
|
|
|
|
|
require 'msf/core'
|
|
|
|
|
|
|
|
|
|
|
|
###
|
|
|
|
#
|
|
|
|
# This class implements a "nop" generator for TTY payloads
|
|
|
|
#
|
|
|
|
###
|
2016-03-08 13:02:44 +00:00
|
|
|
class MetasploitModule < Msf::Nop
|
2009-01-13 06:46:32 +00:00
|
|
|
|
2013-08-30 21:28:54 +00:00
|
|
|
def initialize
|
|
|
|
super(
|
|
|
|
'Name' => 'TTY Nop Generator',
|
|
|
|
'Alias' => 'tty_generic',
|
|
|
|
'Description' => 'Generates harmless padding for TTY input',
|
|
|
|
'Author' => 'hdm',
|
|
|
|
'License' => MSF_LICENSE,
|
|
|
|
'Arch' => ARCH_TTY)
|
|
|
|
end
|
2009-01-13 06:46:32 +00:00
|
|
|
|
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
|
2009-01-13 06:46:32 +00:00
|
|
|
|
|
|
|
end
|