Skip to content

Instantly share code, notes, and snippets.

@sokil
Last active September 28, 2016 18:58
Show Gist options
  • Select an option

  • Save sokil/fc15723fd56354b7dc80a52d5ad1a6b8 to your computer and use it in GitHub Desktop.

Select an option

Save sokil/fc15723fd56354b7dc80a52d5ad1a6b8 to your computer and use it in GitHub Desktop.
// 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