bcpcap

command
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2026 License: AGPL-3.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL