progs/shell.c
author Christian Urban <urbanc@in.tum.de>
Tue, 26 Sep 2017 13:22:24 +0100
changeset 539 48e0c8b03ae5
parent 221 ae6074cc446a
permissions -rw-r--r--
spell

#include <stdio.h>

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