pwnable.kr(12) - blackjack
## Problem Points: 1pt
Link
1
2
3
4
5
6
7
8
9Hey! check out this C implementation of blackjack game!
I found it online
* http://cboard.cprogramming.com/c-programming/114023-simple-blackjack-program.html
I like to give my flags to millionares.
how much money you got?
Running at : nc pwnable.kr 9009
Code
Code is at here
Thinking
The code seems no big exploit point. But seek the
input(scanf)
line first. Specially lines invlove with
money.
Solution
1 | void play() |
The bet is given by betting()
function in
player()
.
1 | int betting() //Asks user amount to bet |
The code seems no exploit point to let us change the flow. But I’m curious about why this condition check is not a while loop, infinitely check until player’s bet is legal?