Clone of Akilla's acserver @ https://github.com/deregtd/ACServer

howto_crc.cpp 627B

123456789101112131415
  1. unsigned char SERVER_Packet40[36] = {
  2. 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x40, 0x00, 0x0B, 0x00, 0x00, 0x00, 0x63, 0x48, 0x6C, 0x55, //(______@_____cHlU)
  3. 0x10, 0x00, 0x00, 0x00, 0x02, 0x00, 0x23, 0x28, 0xCF, 0x2E, 0xCC, 0x29, 0x00, 0x00, 0x00, 0x00, //(______#(_._)____)
  4. 0x00, 0x00, 0x00, 0x00, //(____)
  5. } ;
  6. void woot (void)
  7. {
  8. DWORD crc1,crc2,crc3;
  9. DWORD *crc;
  10. crc=(DWORD *)&SERVER_Packet40[12]; *crc=0x3291975;
  11. crc1=GetMagicNumber(&SERVER_Packet40[0x14], 0x10, 0);
  12. crc2=GetMagicNumber(&SERVER_Packet40[0x00], 0x14, 1);
  13. crc3=crc1+crc2;
  14. }