Skip to content

Instantly share code, notes, and snippets.

@EdoardoVignati
Created October 25, 2018 08:37
Show Gist options
  • Save EdoardoVignati/7a6e37bd5ce18ce8b9dcc08fb4cdc735 to your computer and use it in GitHub Desktop.
Save EdoardoVignati/7a6e37bd5ce18ce8b9dcc08fb4cdc735 to your computer and use it in GitHub Desktop.
Simple execve example
#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