From eb60c8072361daba4ea09f308cd08f7745d27a23 Mon Sep 17 00:00:00 2001 From: Srinivas P G Date: Thu, 3 Jan 2019 20:49:30 -0800 Subject: [PATCH] over the wire - aoc Day0 Master Boot Record? Pending.... --- .../Cryptography/overTheWire/day0.input | 52 +++++++++++++++++++ .../Cryptography/overTheWire/day0.py | 12 +++++ 2 files changed, 64 insertions(+) create mode 100644 captureTheFlag/Cryptography/overTheWire/day0.input create mode 100644 captureTheFlag/Cryptography/overTheWire/day0.py diff --git a/captureTheFlag/Cryptography/overTheWire/day0.input b/captureTheFlag/Cryptography/overTheWire/day0.input new file mode 100644 index 0000000..e3e8ec9 --- /dev/null +++ b/captureTheFlag/Cryptography/overTheWire/day0.input @@ -0,0 +1,52 @@ +01101101011001010111001001110010011110/ \010010000001101000011001010111100001101 +101011000010111001100100000001011010 / f \ 0100000011011010110010101110010011100 +10011110010010000001101000011001010 / a31 \ 111100001101101011000010111001100100 +0000010110100100000011011010110010 / c0 8e \ 10111001001110010011110010010000001 +101000011001010111100001101101011 / d88 e \ 0000101110011001000000010110100100 +00001101101011001010111001001110 / c08ee08ed \ 010011110010010000001101000011001 +0101111000011011010110000101110 / 08 ee83 1 \ 01100100000001011010010000001101 +101011001010111001001110010011 / dbbc 0 0 7c \ 1100100100000011010000110010101 +11100001101101011000010111001 / b eb17 ce88d 0 \ 100100000001011010010000001101 +1010110010101110010011100100 / 0bfc a7c30 e 4cd \ 11110010010000001101000011001 +010111100001101101011000010 / 1 6 aab40 ecd1 081 \ 1110011001000000010110100100 +00001101101011001010111001 / ffe37c7 5 f 1b 00d \ 001110010011110010010000001 +10100001100101011110000110 --- cd10b00 acd1 --- 110101100001011100110010000 +0001011010010000001101101011 / 0b bf f7e88 1ffe \ 00101011100100111001001111001 +001000000110100001100101011 / cb7 5f a3 1ff31f \ 1100001101101011000010111001 +10010000000101101001000000 / 6 0 3318 9 f8b1d \ 110110101100101011100100111 +0010011110010010000001101 / 3 f6f197c1ef0 80 3b \ 00001100101011110000110110 +101100001011100110010000 / 50 07c8 1e6ff0089c 7 8a01 \ 0001011010010000001101101 +01100101011100100111001 / 8a20880 088214 781f f 0001 \ 001111001001000000110100 +0011001010111100001101 / 75 db31ff31 f64 781f f170 174 \ 10101100001011100110010 +000000101101001000000 / 2 2 5781 e7ff0 0 0 3 3181 \ 1101101011001010111001 +00111001001111001001 / e6ff00 8a01 8 a20 8 8008821 0 \ 000000110100001100101 +01111000011011010110 --- 0e030e489c78a 095f3 08de --- 000101110011001000000 +0101101001000000110110 / 2 7 ce bd76 6a1 e3 7c663d \ 10110010101110010011100 +100111100100100000011 / ef beadde7 44ab e c57ce8020 \ 0100001100101011110000 +11011010110000101110 / 0eb feb40 eac84c 07404 cd 1 \ 011001000000010110100 +1000000110110101100 / 0e bf5c3 2876657273696f6e2 0 32 \ 10101110010011100100 +111100100100000011 / 290d 0 a666c61673 a200 06e 6f7 0 \ 0100001100101011110 +00011011010110000 / 6 500 41 4f54 577b6e6f 745f746 86 55f \ 101110011001000000 +0101101001000000 / 6 66c616 75f28796 574 2 9 5f7db 7157 \ 11011010110010101 +110010011100100 / 40 30 67 1 3b 02e af2a1982f 8faef8 5107 \ 1111001001000000 +11010000110010 / c67 33e ca 540760 3d9 4 c 55a 84d de5abc551 \ 101111000011011 +0101100001011 / ee09d 93e0a2 6 32 2640e5 1 850 e50890c0 f \ 10011001000000 +0101101001000 --- 9 118 e7f 4c756954e4 85 69 56716644 d b --- 00011011010110 +010101110010011 / 19f6e84954701b8 d f97 a f15 3e450c5 55a3 a \ 1001001111001001 +00000011010000 / 6ab0 6 667d 234 39 e8f1 7 3 de 1b 46 84c b3b4 \ 110010101111000 +0110110101100 / 013 a8e7332cc b 1 14a490 0f 260 ab7817b4ed d4 \ 00101110011001 +000000010110 / 807e4a163098d1c b82 76a dc 12 e3 a1c 7 c1b f198 \ 1001000000110 +11010110010 / e2d f7f9ae8ec 8 71 d7aa7 1 8 6 60 c2af 6f36fabc e \ 101110010011 +1001001111 / 5 7 5e6c fadc429a4f d1a208c b dc8 379f 8 560 399a \ 00100100000 +011010000 / f0 b5 45f 599 5342 53 04ec d 3 f10 bcc4 1f5d a 1f \ 1100101011 +11000011 / bdd0 67 ffac6 1 064544 a38 50 a1c ff dcaf 3 ef60 71771 \ 011010110 +0001011 / a2 7ae79b363 eaf3f bf5190c63 5 2 d cb 4 9 68 5be08d \ 10011001 +000000 / a64a2c 6 671ae5 4004cc 7127 b0 6c88e691 1 55 8d3efdd47459c \ 0101101 +00100 / 9 403c 574a6 a9 a fb2c068 db 336 1 56c685f73 2 b64 f0e65 455aa \ 000011 +01101 ---------------------------- xxxxxxxxx ---------------------------- 011001 +0101110010011100100111100100100000 xxxxxxxxx 01101000011001010111100001101101011 +0000101110011001000000010110100100 xxxxxxxxx 00001101101011001010111001001110010 +0111100100100000011010000110010101 xxxxxxxxx 11100001101101011000010111001100100 +0000010110100100000011011010 xxxxxxxxxxxxxxxxxxxxx 11001010111001001110010011110 +01001000000110100001100101011 xxxxxxxxxxxxxxxxxxx 110000110110101100001011100110 +010000000101101001000000110110 xxxxxxxxxxxxxxxxx 1011001010111001001110010011110 diff --git a/captureTheFlag/Cryptography/overTheWire/day0.py b/captureTheFlag/Cryptography/overTheWire/day0.py new file mode 100644 index 0000000..1da69c3 --- /dev/null +++ b/captureTheFlag/Cryptography/overTheWire/day0.py @@ -0,0 +1,12 @@ +day0 = open("day0.input", "r") +data = day0.readlines() +result = "" +for d in data: + d = d.strip() + if "/" in d and "\\" in d: + d = d.split("/")[-1].strip() + d = d.split("\\")[0].strip() + d = "".join(d.split(" ")) + result += d.strip() +print result +#print result.decode("hex")