progs/shell.c
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Mon, 05 Sep 2016 12:27:04 +0100
changeset 461 57108918cf8c
parent 221 ae6074cc446a
permissions -rw-r--r--
links

#include <stdio.h>

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