Skip to content

Instantly share code, notes, and snippets.

@1nnOc3nt
Last active January 24, 2019 11:35
Show Gist options
  • Save 1nnOc3nt/90ea0686ad21e03d9be0b35025d6e9f8 to your computer and use it in GitHub Desktop.
Save 1nnOc3nt/90ea0686ad21e03d9be0b35025d6e9f8 to your computer and use it in GitHub Desktop.
flag[4]
key[4]
def right():
print "Right"
key[0] -= 1
flag[0] -= 1
def left():
print "Left"
key[1] -= 1
flag[1] -= 1
def up():
print "Up"
key[2] -= 1
flag[2] -= 1
def down():
print "Down"
key[3] -= 1
flag[3] -= 1
def main():
while (keypress != Enter):
if (keypress == Right):
Right()
if (keypress == Left):
left()
if (keypress == Up):
up()
if (keypress == Down):
down()
if(key[0] == 0x32
and key[1] == 0x30
and key[2] == 0x37
and key[3] == 0x38):
print "yeah!"
print "FLAG IS: %s" % flag
else:
print "nope"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment