Codebase list framework2 / master payloads / linux_ia32_bind_stg.pm
master

Tree @master (Download .tar.gz)

linux_ia32_bind_stg.pm @masterraw · history · blame

##
# This file is part of the Metasploit Framework and may be redistributed
# according to the licenses defined in the Authors field below. In the
# case of an unknown or missing license, this file defaults to the same
# license as the core Framework (dual GPLv2 and Artistic). The latest
# version of the Framework can always be obtained from metasploit.com.
##

package Msf::Payload::linux_ia32_bind_stg;
use strict;
use base 'Msf::PayloadComponent::Linux::ia32::ShellStage';

my $info =
{
	'Name'        => 'Linux IA32 Staged Bind Shell',
	'Version'     => '$Revision: 1600 $',
	'Description' => 'Listen on a port for a connection and spawn a shell as a stage',
};

sub _Load
{
	Msf::PayloadComponent::Linux::ia32::ShellStage->_Import('Msf::PayloadComponent::Linux::ia32::BindStager');

	__PACKAGE__->SUPER::_Load();
}

sub new
{
	my $class = shift;
	my $hash  = @_ ? shift : { };

	_Load();

	$hash = $class->MergeHashRec($hash, { 'Info' => $info });

	my $self = $class->SUPER::new($hash, @_);

	return $self;
}

1;