summaryrefslogtreecommitdiffstats
path: root/reversing_tools/abbott (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-10-04Depend on freestyle-hid for FreeStyle support and remove tools.Diego Elio Pettenò6-547/+0
Instead of maintaining the reversing tools for Abbott FreeStyle devices in this repository, they are now part of their own project (https://github.com/glucometers-tech/freestyle-hid), making it easier to split the dependencies requirements. The basic I/O of the FreeStyle session is also implemented in that library.
2020-09-07Update pre-commit plugins to the latest versions as of today.Diego Elio Pettenò1-1/+4
2020-08-03Extend the Libre2 encryption reversing tool.Diego Elio Pettenò2-0/+221
2020-08-03Expect an input file as argument instead.Diego Elio Pettenò1-2/+2
2020-05-25freestyle_libre: extract non-encrypted metadata from encrypted messages.Diego Elio Pettenò1-3/+17
The sequence number and MAC are not actually encrypted, so they can be extracted as METADATA.
2020-05-25extract_freestyle: print metadata about messages outside of the message.Diego Elio Pettenò1-0/+12
This makes it easier to figure out what the message length is meant to be.
2020-05-25Fix the help messages.Diego Elio Pettenò1-3/+3
2020-05-25Fix up header.Diego Elio Pettenò1-15/+2
2020-05-16Remove f-string prefix from strings with no placeholders.Diego Elio Pettenò1-1/+1
2020-05-16Add pre-commit configuration for REUSE.software.Diego Elio Pettenò1-0/+3
The only files that were lacking a license were the 0-sized __init__.py files — since those are not copyrighteable, make them Unlicense relesed.
2020-04-20Make the project compliant with the REUSE guidelines.Diego Elio Pettenò1-0/+3
See https://reuse.software/ for details. For simplicity, the support files, that are vastly copy-pasta, are licensed under MIT license, rather than LGPL-2.1-or-later. Note that `reuse lint` currently fails due to fsfe/reuse-tool#208.
2020-03-27Add missing SPDX-FileCopyrightText throughout the project.Diego Elio Pettenò2-0/+2
This is following the advice provided in https://matija.suklje.name/how-and-why-to-properly-write-copyright-statements-in-your-code
2020-03-26Fix errors identified by flake8.Diego Elio Pettenò1-1/+2
2020-03-23Check type annotations for tools with mypy, too.Diego Elio Pettenò1-0/+0
This requires the released version of usbmon-tools.
2020-03-22Make HID support a "session" class rather than a base class.Diego Elio Pettenò1-5/+5
This in turn allows wrapping the FreeStyle access in its own session class, which the freestyle_hid_console can use without dirty tricks, and without triggering the now-abstract class.
2020-03-14Now that Python 3.6 is the minimum supported version, use f-strings.Diego Elio Pettenò1-2/+2
The f-strings formatted strings are generally simpler to write, read and debug, with a few exceptions. Keep the logging strings lazy, keep the CSV-building with %-formatting, as it makes it more readable. In fsoptium, keep `'$%s\r\n'` as a %-format, to avoid making it `f'${command}\r\n'` that would make it easy to mistake for a Shell variable.
2020-03-08format code with blackBen2-51/+100
2020-02-01Clean up the extraction script, and make it more user friendly.Diego Elio Pettenò1-13/+37
This includes changes to the flags, so that instead of an address prefix you need to provide a full device address, and instead of `--libre2`, there's a `--encrypted_protocol` flag. If the capture includes the descriptors, neither flags are needed because the script identifies them itself.
2020-01-24extract_freestyle: add an option to not print keepalive messages.Diego Elio Pettenò1-1/+16
These messages are not encrypted, but they can also be safely ignored.
2020-01-24Avoid heuristics, and instead add an explicit --libre2 flag.Diego Elio Pettenò1-12/+16
This encodes some more details of which commands are encrypted and not, but makes decoding easier.
2020-01-24Add a tool to extract a FreeStyle protocol chatter from an usbmon capture.Diego Elio Pettenò1-0/+109
The tool needs https://github.com/Flameeyes/usbmon-tools to work, and is derived off the extract-hid-chatter tool in that repository, so it's Apache-2 licensed (unlike the rest of the repository) and shares copyright with the usbmon-tools authors. While this does not work correctly for Libre2 traces, it does appear to work fine with Libre1 systems with text protocol exchanges, and it provides a starting point.
2019-09-27Fix the freestyle_hid_console to use Python 3.5 compatible formatting.Diego Elio Pettenò1-2/+2
2019-09-15Add the list of known FreeStyle commands to the tools directory.Diego Elio Pettenò1-0/+48
This can be used to help testing new FreeStyle devices, like the Libre2.
2019-09-08freestyle_hid_console: allow feeding a list of known commands.Diego Elio Pettenò1-1/+7
This makes it easier to identify the expected command range of a FreeStyle device.
2019-09-08Add a simple-ish script to use access a FreeStyle HID-compatible commands.Diego Elio Pettenò1-0/+46
This makes it possible to send and receive text-command protocols to a FreeStyle HID device without actually writing any code, to identify possible valid commands.