Skip to content

Instantly share code, notes, and snippets.

@mimaun
Created June 11, 2015 06:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mimaun/5dab5a4eebc238b5ea63 to your computer and use it in GitHub Desktop.
Save mimaun/5dab5a4eebc238b5ea63 to your computer and use it in GitHub Desktop.
Ceasar II [We Chall]
# -*- coding: utf-8 -*-
cipher = "0F 37 37 2C 20 32 37 2A 74 20 41 37 3D 20 3B 37 34 3E 2D 2C 20 37 36 2D 20 35 37 3A 2D 20 2B 30 29 34 34 2D 36 2F 2D 20 31 36 20 41 37 3D 3A 20 32 37 3D 3A 36 2D 41 76 20 1C 30 31 3B 20 37 36 2D 20 3F 29 3B 20 2E 29 31 3A 34 41 20 2D 29 3B 41 20 3C 37 20 2B 3A 29 2B 33 76 20 1F 29 3B 36 6F 3C 20 31 3C 07 20 79 7A 00 20 33 2D 41 3B 20 31 3B 20 29 20 39 3D 31 3C 2D 20 3B 35 29 34 34 20 33 2D 41 3B 38 29 2B 2D 74 20 3B 37 20 31 3C 20 3B 30 37 3D 34 2C 36 6F 3C 20 30 29 3E 2D 20 3C 29 33 2D 36 20 41 37 3D 20 3C 37 37 20 34 37 36 2F 20 3C 37 20 2C 2D 2B 3A 41 38 3C 20 3C 30 31 3B 20 35 2D 3B 3B 29 2F 2D 76 20 1F 2D 34 34 20 2C 37 36 2D 74 20 41 37 3D 3A 20 3B 37 34 3D 3C 31 37 36 20 31 3B 20 2E 2E 3B 2D 34 2B 38 36 2D 30 31 37 76"
cipher_no_space = cipher.split(" ")
hextTodecimal = []
for w in cipher_no_space:
# 16 -> 10
hextTodecimal.append(int(w, 16))
## bruteforce
# for i in range(26, 128):
# for w in newArr:
# print chr(w + i),
# print "\n"
keyspace = 30 + 26
for w in hextTodecimal:
print chr(w + keyspace),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment