Files
FreeBSD/rainroot/caller.c
your-favorite-hacker 094b73988e add rainroot
2015-06-01 21:04:51 +02:00

16 lines
259 B
C

/* yes, this code will segfault if you dont give it an argument */
#include <stdio.h>
#include <unistd.h>
#include <sys/syscall.h>
#include <stdlib.h>
int main(int argc, char *argv[]){
int scall=-1;
scall = atoi(argv[1]);
syscall(scall);
return(0);
}