Open cadavrezzz opened 9 months ago
This byte stated above isn't checked in my sources. Therefore this workaround isn't needed. CNetMdSecure::secureExchange() checks the secure header (Response Bytes 1 ... 9) and the command code (0x20) at offset 10. Byte at offset 11 (as the change states) isn't compared. And in function CNetMdSecure::sessionKeyExchange() response offset 12, 13, and 14 are checked.
So, if the transfer to these Panasonic devices doesn't work - this isn't the reason.
in SRC cybercase/netmd-js -
async sessionKeyExchange(hostnonce: Uint8Array) { if (hostnonce.length !== 8) { throw new Error('Supplied host nonce length wrong'); } const query = formatQuery('1800 080046 f0030103 20 ff 000000 %*', hostnonce); const reply = await this.sendQuery(query); return scanQuery(reply, '1800 080046 f0030103 20 %? 000000 %#')[0] as Uint8Array; // '20 00' => '20 %?' - Fix for Panasonic SJ-MR270 }