Skip to content

Instantly share code, notes, and snippets.

View AarC10's full-sized avatar
๐Ÿ˜œ
Hacking away

Aaron AarC10

๐Ÿ˜œ
Hacking away
View GitHub Profile
#!/usr/bin/python
# https://github.com/mefistotelis/phantom-firmware-tools/issues/25
# as shared by GlovePuppet
import struct
def calc_pkt55_hdr_checksum(seed, packet, plength):
arr_2A103 = [0x00,0x5E,0xBC,0xE2,0x61,0x3F,0xDD,0x83,0xC2,0x9C,0x7E,0x20,0xA3,0xFD,0x1F,0x41,
0x9D,0xC3,0x21,0x7F,0xFC,0xA2,0x40,0x1E,0x5F,0x01,0xE3,0xBD,0x3E,0x60,0x82,0xDC,
0x23,0x7D,0x9F,0xC1,0x42,0x1C,0xFE,0xA0,0xE1,0xBF,0x5D,0x03,0x80,0xDE,0x3C,0x62,