Created
October 25, 2018 08:37
-
-
Save EdoardoVignati/7a6e37bd5ce18ce8b9dcc08fb4cdc735 to your computer and use it in GitHub Desktop.
Simple execve example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(){ | |
char *cmd[]={"/bin/sh", NULL}; | |
execve(cmd[0], cmd, NULL); | |
return 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment