CTF (PHP weak type)

Question to the source code:
Insert picture description here

Title

The title requires that you can’t enter numbers, but the input string must be the same as 54975581388.
Use the hexadecimal equivalent of 54975581388. It’s a coincidence that if it is not a number, it will succeed. The
conversion result is: ccccccccc
uses the weak type feature of PHP

Add 0xccccccccc before the hexadecimal system

=== When comparing, it will first determine whether the types of the two strings are equal, and then compare.
== When comparing, first convert the string type to the same, and then compare.

Guess you like

Origin blog.csdn.net/qq_42812036/article/details/103322011