Add TPIU pure-python parser #558
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Orbuculum stopped accepting raw TPIU frames since v2.2.0. As TPIU framing is stable, parsing it in Python makes sense, leaving the other more complicated layers to Orbuculum to parse.
The code additionnaly leveraged the official python wrapper pyorb (
pip install python-orbuculum) to directly use liborb and thus removes the need to write data to files, call binaries and then parse their text output. As packets are then returned as different python classes, it also opens support for more advanced ITM/ETM/DTW work for SCA.Also added self-test to make sure future code changes don't introduce regression as the parsing is a bit twisted.
Code is heavily inspired from the TPIU decoder contained in Orbuculum project.