Documentation
¶
Overview ¶
Command bcpcap decodes a Baichuan conversation out of a packet capture.
Everything left of the protocol is blocked on the same thing: the numeric message ids. They are not in a table in any firmware here, they live in dispatch code, and recovering one costs an afternoon of disassembly. A capture of an official client driving a camera settles all of them at once, because every id arrives with the XML that names it.
The catch a capture alone does not solve is that everything after login is AES encrypted. The key is derivable, though: it is the login nonce and the password, and the nonce travels in the handshake under a fixed cipher. So given the password, a capture decodes completely.
bcpcap -password PW capture.pcap bcpcap -password PW -xml capture.pcap # full XML, not just the root
Capture it at the machine running the client, which needs no network tricks:
Wireshark on the same PC as the Reolink client, filter "tcp port 9000", then click through the settings you want the ids for.