progs/shell.c
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Tue, 26 Sep 2017 12:35:32 +0100 (2017-09-26)
changeset 537 72dbf4154173
parent 221 ae6074cc446a
permissions -rw-r--r--
updated
#include <stdio.h>

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