Author: NoobMaster
I love division
the python server code was given in chall.py
chall.py
|
|
basically you want to input a number large enough that it divides the 16bit secret to give zero, but you have certain checks preventing you from inputting large numbers
lets have a look at the decimal python package being used
and immediately we see this
A decimal number is immutable. It has a sign, coefficient digits, and an exponent. To preserve significance, the coefficient digits do not truncate trailing zeros. Decimals also include special values such as Infinity, -Infinity, and NaN. The standard also differentiates -0 from +0.
Infinity is only 8 characters and bypasses the checks to give us the flag
❯ nc play.scriptsorcerers.xyz 10166
Enter a number: Inf
scriptCTF{70_1nf1n17y_4nd_b3y0nd_75409d50f3a7}