2009-01-13 06:46:32 +00:00
|
|
|
##
|
2009-03-28 06:03:35 +00:00
|
|
|
# $Id$
|
2009-01-13 06:46:32 +00:00
|
|
|
##
|
|
|
|
|
|
|
|
##
|
2010-04-30 08:40:19 +00:00
|
|
|
# This file is part of the Metasploit Framework and may be subject to
|
2009-01-13 06:46:32 +00:00
|
|
|
# redistribution and commercial restrictions. Please see the Metasploit
|
|
|
|
# Framework web site for more information on licensing and terms of use.
|
2009-04-13 14:33:26 +00:00
|
|
|
# http://metasploit.com/framework/
|
2009-01-13 06:46:32 +00:00
|
|
|
##
|
|
|
|
|
|
|
|
|
|
|
|
require 'msf/core'
|
|
|
|
|
|
|
|
|
|
|
|
###
|
|
|
|
#
|
|
|
|
# This class implements a "nop" generator for TTY payloads
|
|
|
|
#
|
|
|
|
###
|
|
|
|
class Metasploit3 < Msf::Nop
|
|
|
|
|
|
|
|
def initialize
|
|
|
|
super(
|
|
|
|
'Name' => 'TTY Nop Generator',
|
|
|
|
'Alias' => 'tty_generic',
|
2009-03-28 06:03:35 +00:00
|
|
|
'Version' => '$Revision$',
|
2009-01-13 06:46:32 +00:00
|
|
|
'Description' => 'Generates harmless padding for TTY input',
|
|
|
|
'Author' => 'hdm',
|
|
|
|
'License' => MSF_LICENSE,
|
|
|
|
'Arch' => ARCH_TTY)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Generate valid PHP code up to the requested length
|
|
|
|
def generate_sled(length, opts = {})
|
|
|
|
# Default to just spaces for now
|
|
|
|
" " * length
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|