progs/shell.c
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Thu, 15 Dec 2016 16:11:05 +0000
changeset 502 66d2bc189b88
parent 221 ae6074cc446a
permissions -rw-r--r--
merged

#include <stdio.h>

int main()
{  char *name[2];
   name[0] = "/bin/sh";
   name[1] = NULL;
   execve(name[0], name, NULL);
}