pwnable.kr(12) - blackjack
Problem
Points: 1pt
1 | Hey! check out this C implementation of blackjack game! |
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?