Last active
September 28, 2016 18:58
-
-
Save sokil/fc15723fd56354b7dc80a52d5ad1a6b8 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
| // For Windows 32 | |
| // i686-w64-mingw32-g++-win32 -static-libstdc++ -static-libgcc -o hackme_win32.exe hackme.cpp | |
| // wine hackme_win32.exe | |
| // For Windows 64 | |
| // x86_64-w64-mingw32-g++ -static-libstdc++ -static-libgcc -o hackme_win64.exe hackme.cpp | |
| // wine hackme_win64.exe | |
| #include <iostream> | |
| int main() { | |
| std::cout << "Press any key to see results" << std::endl; | |
| std::cin.get(); | |
| int i = 12547634; | |
| int j = 12415436; | |
| if (i == j) { | |
| std::cout << "Success. Secret code is: " << (i * 2) << std::endl; | |
| } else { | |
| std::cout << "Try again" << std::endl; | |
| } | |
| std::cout << "Press any key to continue" << std::endl; | |
| std::cin.get(); | |
| return 0; | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment