progs/shell.c
author Christian Urban <urbanc@in.tum.de>
Thu, 06 Jul 2017 13:51:18 +0100
changeset 517 9a6480cb6e37
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);
}