Skip to content

Instantly share code, notes, and snippets.

@wbowling
Created July 20, 2017 14:45
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 wbowling/aa720d7888aaabfffc22717b413f81cb to your computer and use it in GitHub Desktop.
Save wbowling/aa720d7888aaabfffc22717b413f81cb to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <stdlib.h>
int main() {
// char *pass = "THE SECRET HAS BEEN REMOVED LOL";
char *pass = "\x9a\x60\x76\x14\x8b\x36\x5a\x10\x2b\x91\xc4\x6c\xab\x27\x92\x99\xf8\x6a\xec\x5d\x32\x20\x3d\x61\x8f\xc7\xfb\xdd\x02\x72\xbf";
char key[31];
char out[31];
// 2017-07-16 to 2017-07-20
for (int k = 1500163200; k < 1500508800; k++) {
srand(k);
for (int i = 0; i < 31; i++) {
unsigned long r = rand();
key[i] = r - (0x7F807F81ull * r >> 39) - (r >> 31);
}
for (int i = 0; i < 31; i++) {
out[i] = key[i] ^ pass[i];
}
printf("%s\n", out);
}
}
// run with ./a |strings -n 20
// Who needs to store keys anyway.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment