diff --git a/dissector/messages.md b/dissector/messages.md index 3b1f904..bddf73d 100644 --- a/dissector/messages.md +++ b/dissector/messages.md @@ -1111,6 +1111,72 @@ a PR to improve it. cameras only have weak encryption that is easily broken since the decryption key is fixed and well-known. + - 67: ` (FW Upgrade)` + + - Client + + - Header + + | Magic | Message ID | Message Length | Encryption Offset | Status Code | Message Class | Binary Offset | + |--------------|--------------|----------------|-------------------|-------------------|---------------|---------------| + | 0a bc de f0 | 00 00 00 43 | 00 00 01 00 | 00 00 00 00 | 00 00 | 64 14 | 00 00 00 00 | + + - Body + + ```xml + + + + FIRMWAREFILE.pak + SIZE_IN_BYTES + 0 + + + ``` + + - **Notes:** updateParameter refers to updating the settings. If 1 it will restore factory settings. If 0 it will keep current. + + - Camera + + - Header + + | Magic | Message ID | Message Length | Encryption Offset | Status Code | Message Class | Binary Offset | + |--------------|--------------|----------------|-------------------|-------------------|---------------|---------------| + | 0a bc de f0 | 00 00 00 43 | 00 00 00 00 | 00 00 00 00 | c8 00 | 00 00 | 00 00 00 00 | + + - Client + + - Header + + | Magic | Message ID | Message Length | Encryption Offset | Status Code | Message Class | Binary Offset | + |--------------|--------------|----------------|-------------------|-------------------|---------------|---------------| + | 0a bc de f0 | 00 00 00 43 | 00 00 94 58 | 00 00 00 00 | 00 00 | 64 14 | 00 00 00 6a | + + - Body + + ```xml + + + 1 + + ``` + + - Binary + + This contains binary data of the file but stops once the message size reaches + 38000 bytes and continues in another packet. There does not appear to + be a checksum or hash and this part contains only the raw bytes of the file. + + - Camera + + - Header + + | Magic | Message ID | Message Length | Encryption Offset | Status Code | Message Class | Binary Offset | + |--------------|--------------|----------------|-------------------|-------------------|---------------|---------------| + | 0a bc de f0 | 00 00 00 43 | 00 00 00 00 | 00 00 00 00 | c8 00 | 00 00 | 00 00 00 00 | + + - **Notes:** Last two messages repeat until all data is sent + - 76: `` - Client diff --git a/src/bc/samples/e1_firmwareupgrade.pcapng b/src/bc/samples/e1_firmwareupgrade.pcapng new file mode 100644 index 0000000..04e7bab Binary files /dev/null and b/src/bc/samples/e1_firmwareupgrade.pcapng differ