mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-05 14:57:30 +01:00
41 lines
823 B
Ruby
41 lines
823 B
Ruby
##
|
|
# $Id$
|
|
##
|
|
|
|
##
|
|
# This file is part of the Metasploit Framework and may be subject to
|
|
# redistribution and commercial restrictions. Please see the Metasploit
|
|
# web site for more information on licensing and terms of use.
|
|
# http://metasploit.com/
|
|
##
|
|
|
|
|
|
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',
|
|
'Version' => '$Revision$',
|
|
'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
|