progs/shell.c
author Christian Urban <urbanc@in.tum.de>
Sun, 11 Dec 2016 07:23:03 +0000
changeset 500 b03becc049e6
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);
}