From 21be46a0b5364c5f00f4d081ad9524ae9a36d022 Mon Sep 17 00:00:00 2001 From: jaseg Date: Thu, 8 Nov 2018 19:53:11 +0900 Subject: HID report transmission partially works now partially i.e. if you attach the keyboard before the noise handshake. I suspect some memory corruption somewhere. --- hexnoise.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'hexnoise.py') diff --git a/hexnoise.py b/hexnoise.py index e8a3d73..1b8a304 100755 --- a/hexnoise.py +++ b/hexnoise.py @@ -80,3 +80,8 @@ if __name__ == '__main__': print('Handshake finished, handshake hash:') hexdump(print, proto.get_handshake_hash(), args.width) + while True: + data = proto.decrypt(receive_packet(ser, args.width)) + print('Decrypted data:') + hexdump(print, data, args.width) + -- cgit