Last active
August 29, 2015 14:25
-
-
Save icedraco/171a0df98ae3bcbb8a83 to your computer and use it in GitHub Desktop.
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(void) { | |
| char buffer[1024]; | |
| char buffer2[2048]; | |
| fgets(buffer, 1023, stdin); | |
| sprintf(buffer2, "echo $((%s))", buffer); | |
| system(buffer2); // TADA! :D | |
| return 0; | |
| } | |
| // Shorter version: | |
| // int main(void) { | |
| // return system("python"); // TADA! :D | |
| // } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment