progs/shell.c
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Mon, 11 Jan 2016 02:05:24 +0000
changeset 443 67d7d239c617
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);
}