Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ShotokanZH/flipper_sub_plotters_comparers
Flipper SUB Plotters / comparers!
https://github.com/ShotokanZH/flipper_sub_plotters_comparers
Last synced: about 1 month ago
JSON representation
Flipper SUB Plotters / comparers!
- Host: GitHub
- URL: https://github.com/ShotokanZH/flipper_sub_plotters_comparers
- Owner: ShotokanZH
- Created: 2022-08-02T19:09:59.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-04-07T08:40:17.000Z (over 1 year ago)
- Last Synced: 2024-04-14T14:29:05.739Z (8 months ago)
- Language: HTML
- Size: 1.45 MB
- Stars: 109
- Watchers: 3
- Forks: 15
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- fucking-awesome-flipperzero - `SUB Plotters / comparers` Python package to plot and compare multiple .sub files.
- awesome-flipperzero - `SUB Plotters / comparers` Python package to plot and compare multiple .sub files.
- awesome-flipperzero-withModules - `SUB Plotters / comparers` Python package to plot and compare multiple .sub files.
README
# Flipper SUB Plotters / comparers!
## (Special thanks to [@xb8](https://github.com/xb8))
#
## What is this?
We (me & xb8) were bored and decided to bruteforce some t119 devices (more about it [here](https://github.com/xb8/t119bruteforcer))This repository basically contains the tools we used to plot and compare the flipper zero .sub files thus allowing us to identify the varying bits and make a bruteforcer out of it.
In this repository you will find two scripts:
- `plotall.py`
- plots multiple .sub files simultaneously
- `plot_delimiter.py`
- searches for similar chunks based on a delimiter value, groups and plots those chunksThe usage is described in the next chapter.
Requirements:
```bash
pip3 install -r requirements.txt
```
#
## plotall.py
```
usage: plotall.py [-h] [--outfile OUTFILE] fname [fname ...]Flipper file plotter by ShotokanZH
positional arguments:
fname .sub file(s) to be plottedoptional arguments:
-h, --help show this help message and exit
--outfile OUTFILE Out file (.html), defaults to 'out.html'
```
Example:
```bash
python3 -BO plotall.py sample_files/433_Tesla_* --outfile out/out_plotall.html
```
Outputs:
![Plot All](imgs/plotall.png)#
## plot_delimiter.py
```
usage: plot_delimiter.py [-h] --delimiter DELIMITER [--zero ZERO] [--one ONE] [--outfile OUTFILE] fname [fname ...]Flipper file plotter with delimiter by ShotokanZH
positional arguments:
fname .sub file(s) to be plottedoptional arguments:
-h, --help show this help message and exit
--delimiter DELIMITER
A specific delimiter (Y coordinates) that splits the sequence in chunks (a very low/high value?)
--zero ZERO Y coordinates, draws a line and defines values around it as 0 (it's fancy) (requires --one)
--one ONE Y coordinates, draws a line and defines values around it as 1 (it's fancy) (requires --zero)
--outfile OUTFILE Out file (.html), defaults to 'out.html'
```
Example:
```bash
python3 -BO plot_delimiter.py sample_files/433_Tesla_* --delimiter -1000 --one 800 --zero 400 --outfile out/out_plot_delimiter.html
```
Outputs (In console)
```
len(ylist)=5232 distance=70 maxnum=63
Sequence 0: 000011001111001111111111001001100100100001000010011001110000001001001
Sequence 1: 000011001111001111111111001001100100100001000010011001110000001001001
Sequence 2: 00001100111100111111111100100110010010000100001001100111000000100100
[ CLIP ]
Sequence 60: 000011001111001111111111001001100100100001000010011001110000001001001
Sequence 61: 000011001111001111111111001001100100100001000010011001110000001001001
Sequence 62: 000011001111001111111111001001100100100001000010011001110000001001000
```
Outputs (.html file)
![Plot Delimiter](imgs/plot_delimiter.png)