Web - Tricks 2
270 points
Last updated
270 points
Last updated
Another round of PHP Tricks, good luck.
We are provided with the following source code.
Similar to Web - Tricks 1, there seems to be an impossible conditional check that we need to fulfil. How can the length of a > b and yet length of b > a at the same time? Also, I wanted to know the difference between strlen
and mb_strlen
since that is the only difference between the conditions. Turns out it is quite a popular question.
The final payload is: /?a=04&b=�
Flag: SBCTF{d1d_y0u_kn0w_abou7_7h47?}