From 0b14c93eb31d8d0717253bb8d24b343176bcd3a8 Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 19 Jan 2022 01:21:17 +0000 Subject: [PATCH] Include TS in hash --- hblink.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hblink.py b/hblink.py index 4caf768..e1049d2 100755 --- a/hblink.py +++ b/hblink.py @@ -298,7 +298,7 @@ class OPENBRIDGE(DatagramProtocol): _hash = _packet[61:] #_ckhs = hmac_new(self._config['PASSPHRASE'],_data,sha1).digest() _h = blake2b(key=self._config['PASSPHRASE'], digest_size=16) - _h.update(_data) + _h.update(_packet[:61]) _ckhs = _h.digest() if compare_digest(_hash, _ckhs) and (_sockaddr == self._config['TARGET_SOCK'] or self._config['RELAX_CHECKS']):