#Gecmise Donus \w xd3.
Kod:
[COLOR=White]/*
* ::write(**args) & exit(0) Shellcode
* __author__: xd3
* __format__: ELF 32 Bit
* __platform__: x86/FreeBSD
* __size__: 31 Bytes
*
*/
/* Usage:
*
* # gcc -fno-stack-protector -z execstack xd3.c -o xd3
* # ./xd3
* [~] Byte-Code Len: 31
* WhatsUp?
* #
*/
#include <stdio.h>
#include <string.h>
const unsigned char xd3[] = \
"\x6a\x04\x58\x99\x6a\x0a\x68\x73"
"\x55\x70\x3f\x68\x57\x68\x61\x74"
"\x89\xe3\x6a\x09\x53\x6a\x01\x52"
"\xcd\x80\x52\xb0\x01\xcd\x80";
int main(vo id){
printf("[~] Byte-Code Len: %d\n", strlen(xd3));
vo id (*sh3llcode)() = (vo id *)xd3;
sh3llcode();
}[/COLOR]