diff options
author | jaseg <git@jaseg.net> | 2018-11-08 19:53:11 +0900 |
---|---|---|
committer | jaseg <git@jaseg.net> | 2018-11-08 19:53:11 +0900 |
commit | 21be46a0b5364c5f00f4d081ad9524ae9a36d022 (patch) | |
tree | 9a1dc33ea40b88b038c7ef7702cddddf66373a41 /hexnoise.py | |
parent | e4e231880413c58215130c4b084ac49a03c16b9b (diff) | |
download | secure-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-x | hexnoise.py | 5 |
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) + |