updated instructions

This commit is contained in:
Michael Zhang 2017-02-11 17:25:24 -06:00
parent ecd884e932
commit 76d1e52697
2 changed files with 15 additions and 1 deletions

View file

@ -1 +1,2 @@
I've spent too long in the high level, let's take the level [down a notch](${check}). Help me find the correct input to this function! I've spent too long in the high level, let's take the level [down a notch](${check}). Help me find the correct input to this function!
Your answer should be in the format `a:b` where `a` and `b` are integers. Do **not** wrap it with `easyctf{}`.

13
down-a-notch/grader.py Normal file
View file

@ -0,0 +1,13 @@
def grade(autogen, key):
try:
a, b = map(int, key.split(":"))
c = a ^ b
d = 98 + c
e = ~d + b
f = e ^ a
g = a + b * c / d ^ e + f
if g != -814:
raise Exception("lol")
return True, "Nice!"
except:
return False, "Nope. Keep trying!"