This repository has been archived on 2025-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
csce465pine64backup/hw2/shellcode.c
2018-02-13 23:34:03 -06:00

11 lines
185 B
C
Executable file

// Credit: given by our homework handout.
#include <stdio.h>
#include <string.h>
int main( ) {
char *name[2];
name[0] = "/bin/zsh";
name[1] = NULL;
execve(name[0], name, NULL);
}