Lazy Game Challenge

Binary

I found an interesting game made by some guy named "John_123". It is some betting game. I made some small fixes to the game; see if you can still pwn this and steal $1000000 from me! To get flag, pwn the server at: nc thekidofarcrania.com 10001

As the question give us a server link so we connect with it using netcat.

Lazy Game Challenge

Now it seems that we have to enter a integer less that 500 to place a bet.

Lazy Game Challenge

After that it ask a random key 10 times if our key and computer guess(1-10) is equal then we won the bet and our money will be doubled but to get the flag our money should be greater than $1000000. So our money is $500 if we enter the full amount then on winning it became $1000 which is very less than required.So on losing the bet the bet money is subracted with the total amount.If we enter the negative number and loose the game then the negative amount is subracted and became positive.So to get the flag we just have to enter the amount less than $1000000 and then lose.