Created
October 17, 2020 00:37
-
-
Save aedrax/68312ef539ce556ccfaa0e3c645bb3a0 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
// gcc -g -fno-stack-protector main.c | |
#include <stdio.h> | |
void sneaky() { | |
puts("you win!\n"); | |
} | |
void foo() { | |
char buffer[10]; | |
gets(buffer); | |
puts(buffer); | |
} | |
int main() { | |
foo(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment