csci5271/bcvi/shellcode.c

7 lines
130 B
C
Raw Permalink Normal View History

2018-01-29 17:30:43 -06:00
#include <unistd.h>
int main() {
char *args[2];
args[0] = "/bin/rootshell";
args[1] = NULL;
execve(args[0], args, NULL);
}