Closed unixpickle closed 7 years ago
Extract the string and evaluate it with this function I made with my limited Python experience.
def decode(message):
flist = []
for position, char in enumerate(list(message)):
flist.append(chr((((ord(char) * position) + 12) % 77) + 48))
return "".join(flist)
print(decode("mj1Zc77uYC6jYJ3lMUJu0STyiXuGgYmKtO34SSq2y3ztInEbvKvmcFKql4PqczIcMVnc3KtaVW8F32A8hvsURq7z0TVUqEZLNYHN"))
Merry Christmas! Ho ho ho 🎅
Edit: Is the decode function constant? In other words, do the numerical values or operations change per request? (12, 77, 48).
The first parameter can change, but the other two do not appear to change. Still, anything goes with these challenges; they may easily change in the future, although it's much more likely that the code will just change drastically in general.
Well, if all else fails, PyExecJS is an option. I'm personally interested in making my own Node port when I get the time, as Python isn't my bread & butter.
@Egoscio right, at this point Kahoot has basically made Node the best option. That's why my kahoot-hack invokes a Node web application to solve the challenges.
fixed efcc636, using the safeval.pw service to evaluate it.
I assume that Kahoot's latest challenge has broken this program (although I have not tested it). The new challenge is a bunch of JavaScript code, which can't be run with Python's eval().
Here is an example of a new challenge: