progs/shell.c
author Christian Urban <urbanc@in.tum.de>
Sat, 23 Sep 2017 13:36:20 +0100
changeset 519 06f91010fe1e
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);
}