Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save InersIn/179163cd25b66031b6e7f66ecad0f6e2 to your computer and use it in GitHub Desktop.
Save InersIn/179163cd25b66031b6e7f66ecad0f6e2 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void run_shell(){
system("/bin/sh");
}
void vuln(){
char buf[16];
gets(buf);
}
int main(void) {
vuln();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment