#include #include #include void bar(){ printf("Here's something in a function we're not going to call!\n"); } void foo(unsigned int a, unsigned int b){ uint64_t start = 0x1111111111111111; printf("a = %x, b = %x\n", a, b); for(int i = 0; i <= 40; i++){ printf("%lx\n", *(&start + (30 - i))); } printf("start + 3: %lx\n", *(&start + 3)); *(&start + 0) -= 0xDE; *(&start + 1) -= 0xDE; *(&start + 2) -= 0xDE; *(&start + 3) -= 0x0; } int main(){ foo(0x0A0A0A0A, 0x0B0B0B0B); std::string entered_password; printf("Enter the password: "); std::cin >> entered_password; if(entered_password == "buffalo"){ printf("The secret code you are after is rabbit\n"); } else { printf("You don't know the password\n"); } return 37; }