找出 CRC 或 Chechsum Meter 通信

问题描述

我需要与设备通信,但没有协议规范。捕获请求我收到了这条消息。

    14 AC 00 22 C8 00 64 00 40 00 00 1B 00 [08] 01 80 00 00 C8 80 00 00 64 01 00 00 0F 00 00 01 00 00 04 F6 [13 04 15] [76 66]

    [08] - Seq
    [13 04 15] - Register
    [76 66] CRC or Checksum ?

我猜最后 4 个字节是 CRC 或校验和

我如何发现计算最后 4 个字节的算法?

更新

答案是使用 reveng

并且可以使用 lib [pwntools] (https://python3-pwntools.readthedocs.io/en/latest/util/crc.html) pwnlib.util.crc.generic_crc(data,polynom,width,init,refin,refout,xorout)

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...