summaryrefslogtreecommitdiff
path: root/hexnoise.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.net>2018-11-08 19:53:11 +0900
committerjaseg <git@jaseg.net>2018-11-08 19:53:11 +0900
commit21be46a0b5364c5f00f4d081ad9524ae9a36d022 (patch)
tree9a1dc33ea40b88b038c7ef7702cddddf66373a41 /hexnoise.py
parente4e231880413c58215130c4b084ac49a03c16b9b (diff)
downloadsecure-hid-21be46a0b5364c5f00f4d081ad9524ae9a36d022.tar.gz
secure-hid-21be46a0b5364c5f00f4d081ad9524ae9a36d022.tar.bz2
secure-hid-21be46a0b5364c5f00f4d081ad9524ae9a36d022.zip
HID report transmission partially works now
partially i.e. if you attach the keyboard before the noise handshake. I suspect some memory corruption somewhere.
Diffstat (limited to 'hexnoise.py')
-rwxr-xr-xhexnoise.py5
1 files changed, 5 insertions, 0 deletions
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)
+