Path: blob/master/modules/nops/tty/generic.rb
19758 views
##1# This module requires Metasploit: https://metasploit.com/download2# Current source: https://github.com/rapid7/metasploit-framework3##45###6#7# This class implements a "nop" generator for TTY payloads8#9###10class MetasploitModule < Msf::Nop1112def initialize13super(14'Name' => 'TTY Nop Generator',15'Alias' => 'tty_generic',16'Description' => 'Generates harmless padding for TTY input',17'Author' => 'hdm',18'License' => MSF_LICENSE,19'Arch' => ARCH_TTY)20end2122# Generate valid PHP code up to the requested length23def generate_sled(length, _opts = {})24# Default to just spaces for now25' ' * length26end27end282930