Last active
September 21, 2021 02:04
-
-
Save resilar/60bc3d09dab10a8b5828aaa4ef3b3ff3 to your computer and use it in GitHub Desktop.
zylom trivial pursuit genus edition questions.dat.! (de)cryptor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
static const unsigned char D[256] = | |
"\x3E\x29\xEB\x7F\x9E\xB9\x60\xC7\x8B\x18\x77\xA0\xD3\x35\xB5\x5F" | |
"\x44\x49\x1B\x74\xA3\x6A\xF5\xCD\x28\x88\x0C\x53\x01\xA4\xB6\x47" | |
"\x2E\x65\x9B\xC5\x83\x66\x10\x22\xDF\xFD\xD1\x70\x0A\xB1\x8A\xA9" | |
"\xF3\x21\x6B\x30\xF4\x27\xBC\x11\x15\xDD\xF7\xED\x48\xE1\x17\x9A" | |
"\x46\xC4\xB7\x6C\xD0\x91\xAA\x8E\xCC\xC6\x1F\x2C\x73\xDB\x5D\x71" | |
"\x1E\x6F\xFC\x33\xCA\x25\xF2\x4D\x0B\x1C\xF6\x06\xB8\x26\xC9\x36" | |
"\xB3\xE0\xBE\xD2\xDE\x67\xE6\x4F\x81\x3F\xF0\xD7\xC3\x00\x75\x6E" | |
"\x0E\x2B\x9D\xC1\x72\x8F\x86\x7E\x19\xBF\xB2\xC0\xCE\x8C\x3D\x80" | |
"\x32\xA8\xE3\xD8\x96\x62\x79\x4A\xA1\x34\xFB\xC8\xE2\x90\xB0\xD9" | |
"\xA2\x9C\x31\x04\xBB\x2D\xA7\xD4\x69\x03\x84\xE5\x1A\x85\x41\x3B" | |
"\x5C\x54\x98\xB4\x61\x93\x9F\xF9\x87\x7A\x42\x5B\x59\x43\xCB\x16" | |
"\xE8\xE7\x05\xEE\x6D\x68\x94\xC2\x14\xA5\x3C\x56\x09\x2A\x1D\x39" | |
"\xF8\x95\x57\x23\x45\xBA\x92\x3A\x0F\xE4\xAC\x97\xEC\x2F\x89\x5E" | |
"\x99\xFA\x58\x64\x0D\xEF\x08\x4E\xBD\x82\x63\x5A\xF1\x13\x50\x55" | |
"\x37\x51\x02\x38\xAB\x40\xAF\xA6\xAE\xFF\x8D\xE9\x07\x4C\x4B\xCF" | |
"\xEA\x78\xDC\xFE\xD5\x7D\xDA\x12\x76\xD6\xAD\x52\x7B\x20\x7C\x24" | |
; | |
int main(int argc, char *argv[]) { | |
int i, c; | |
fprintf(stderr, "zylom trivial pursuit questions.dat (de)cryptor ... "); | |
fflush(stderr); | |
for (i = 0; (c = fgetc(stdin)) != EOF; i++) { | |
fputc(c ^ (D[i & 0xFF] & 0x7F), stdout); | |
} | |
fprintf(stderr, "done\n"); | |
return 0; | |
} | |
/* Usage: | |
% gcc zylom.c -o zylom | |
% ./zylom <questions.dat.\! >decrypted | |
zylom trivial pursuit questions.dat (de)cryptor ... done | |
% head -n4 decrypted | |
tri_brown_1 Who said, after the launch of her former friend's autobiography: I was the buffet and he just couldn't resist the dessert? | |
tri_brown_1_1 Monica Lewinsky | |
tri_brown_1_2 Edwina Currie | |
tri_brown_1_3 Princess Diana | |
% ./zylom <decrypted >encrypted | |
zylom trivial pursuit questions.dat (de)cryptor ... done | |
% sha1sum encrypted questions.dat.\! | |
3af631bb15e7daf1ea22bbcc92b859ab5cbd5631 encrypted | |
3af631bb15e7daf1ea22bbcc92b859ab5cbd5631 questions.dat.! | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment