wargame/vortex
vortex7
Sanguine
2014. 6. 15. 22:54
Vortex Level 7 → Level 8
Checksum Fun
This level requires CRC_32(argv[1], strlen(argv[1])) to be 0xe1ca95ee. You might need to extract the crc tables from the program.
Reading Material
Included file: vortex7.c
int main(int argc, char **argv)
{
char buf[58];
u_int32_t hi;
if((hi = crc32(0, argv[1], strlen(argv[1]))) == 0xe1ca95ee) {
strcpy(buf, argv[1]);
} else {
printf("0x%08x\n", hi);
}
}