Skip to content

Instantly share code, notes, and snippets.

@honor2016tw
Created January 13, 2020 13:31
Show Gist options
  • Select an option

  • Save honor2016tw/83f53d4e9fc02e7ea6f3940962577224 to your computer and use it in GitHub Desktop.

Select an option

Save honor2016tw/83f53d4e9fc02e7ea6f3940962577224 to your computer and use it in GitHub Desktop.
FLAG{PikAPikApikaPikap1Ka}
@honor2016tw
Copy link
Author

mapping = [185, 212, 172, 145, 185, 212, 172, 177, 217, 212, 204, 177, 185, 212, 204, 209, 161, 124, 172, 177]

printable = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~ \t\n\r\x0b\x0c'
for i in printable:
    b = ord(i)
    for j in range(len(mapping)):
        b = mapping[j] - b
        i += chr(b)
    print(i)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment