Last active
November 1, 2020 09:59
-
-
Save InersIn/179163cd25b66031b6e7f66ecad0f6e2 to your computer and use it in GitHub Desktop.
This file contains 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> | |
#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