Created
January 23, 2012 23:14
-
-
Save Ignition/1666275 to your computer and use it in GitHub Desktop.
Obfusticated
This file contains 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> | |
#define f(v,k) (((v << 2) | (~v >> 6)) ^ k) | |
int main(int argc, char *argv[]){ | |
unsigned char c = 0x01, v, p[17] = {0x00}, k = 0x00, * t, | |
z[] = {0x87, 0xA3, 0x85, 0x96, 0x81, 0x90, 0x8C, 0xC4, 0xA4, | |
0xCA, 0xC5, 0xA9, 0x88, 0x8B, 0x9D, 0x80, 0xEE}; | |
do{ | |
t = z; | |
while (!((t - z) & 0x10)){ | |
v = f(*t, k) ^ *((t++) + 1); | |
*(p+(t-z)-0x01) = v; | |
if (v >= 0x7F || (v <= 0x1F && v != 0x0A)){ | |
c ^= c; break; | |
} | |
} | |
if (c++) printf("%s", p); | |
} while (++k); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment