/* example decoding of sneaky apple obsfucation of Apple-Challenge and */ /* Apple-Response codes - jpitts - http://www.turtlehead.co.uk */ void main (void) { unsigned long str[] = { 0x0894F3ED8, 0x051288B62, 0x09E1E90EE, 0x0B9F185C9 }; unsigned long str2[] = { 0x0BA14DFAC, 0x6DFD0414, 0x0DD7342, 0x6D9771A6 }; char xortab[] = { 0x99, 0x4e, 0x3f, 0xe5, 0x7, 0xa6, 0x6b, 0x39, 0x8f,0xfc,0x72,0xfb,0xa7,0xe2,0x94,0xb9, -1 }; char xortab2[] = { 0x0ED, 0xAF, 0x64, 0xD6, 0x71, 0x29, 0xAF, 0x8, 0x31, 0x3, 0x0B2, 0x6E, 0x0D5, 0x14, 0x97, 0x0A1, -1 }; char *p = ( char *) str; char *x = xortab; while (*x != -1) { printf ("%c", *p++ ^ *x++ ); } printf ("\n"); p = ( char *) str2; x = xortab2; while (*x != -1) { printf ("%c", *p++ ^ *x++ ); } printf ("\n"); }