Add basic framework for the new TTY architecture
git-svn-id: file:///home/svn/framework3/trunk@6136 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
@@ -75,6 +75,7 @@ ARCH_CBEA64 = 'cbea64'
|
||||
ARCH_SPARC = 'sparc'
|
||||
ARCH_CMD = 'cmd'
|
||||
ARCH_PHP = 'php'
|
||||
ARCH_TTY = 'tty'
|
||||
ARCH_ARMLE = 'armle'
|
||||
ARCH_ARMBE = 'armbe'
|
||||
ARCH_TYPES =
|
||||
@@ -91,7 +92,8 @@ ARCH_TYPES =
|
||||
ARCH_ARMLE,
|
||||
ARCH_ARMBE,
|
||||
ARCH_CMD,
|
||||
ARCH_PHP
|
||||
ARCH_PHP,
|
||||
ARCH_TTY
|
||||
]
|
||||
|
||||
ARCH_ALL = ARCH_TYPES
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
##
|
||||
# $Id: generic.rb 5773 2008-10-19 21:03:39Z ramon $
|
||||
##
|
||||
|
||||
##
|
||||
# This file is part of the Metasploit Framework and may be subject to
|
||||
# redistribution and commercial restrictions. Please see the Metasploit
|
||||
# Framework web site for more information on licensing and terms of use.
|
||||
# http://metasploit.com/projects/Framework/
|
||||
##
|
||||
|
||||
|
||||
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: 5773 $',
|
||||
'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
|
||||
Reference in New Issue
Block a user