{"id":13499491,"url":"https://github.com/ShotokanZH/flipper_sub_plotters_comparers","last_synced_at":"2025-03-29T05:31:30.085Z","repository":{"id":51819652,"uuid":"520620051","full_name":"ShotokanZH/flipper_sub_plotters_comparers","owner":"ShotokanZH","description":"Flipper SUB Plotters / comparers!","archived":false,"fork":false,"pushed_at":"2023-04-07T08:40:17.000Z","size":1520,"stargazers_count":109,"open_issues_count":0,"forks_count":15,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-14T14:29:05.739Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ShotokanZH.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-08-02T19:09:59.000Z","updated_at":"2024-04-07T21:52:48.000Z","dependencies_parsed_at":"2024-01-13T09:36:05.649Z","dependency_job_id":"d65e5216-e9cd-4455-a682-3d1e0f1dc48d","html_url":"https://github.com/ShotokanZH/flipper_sub_plotters_comparers","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShotokanZH%2Fflipper_sub_plotters_comparers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShotokanZH%2Fflipper_sub_plotters_comparers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShotokanZH%2Fflipper_sub_plotters_comparers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShotokanZH%2Fflipper_sub_plotters_comparers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ShotokanZH","download_url":"https://codeload.github.com/ShotokanZH/flipper_sub_plotters_comparers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222465314,"owners_count":16988981,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T22:00:33.646Z","updated_at":"2024-10-31T18:30:34.860Z","avatar_url":"https://github.com/ShotokanZH.png","language":"HTML","funding_links":[],"categories":["Off-device \u0026 Debugging"],"sub_categories":["*Utility*","Utility"],"readme":"# Flipper SUB Plotters / comparers!\r\n## (Special thanks to [@xb8](https://github.com/xb8))\r\n#\r\n## What is this?\r\nWe (me \u0026 xb8) were bored and decided to bruteforce some t119 devices (more about it [here](https://github.com/xb8/t119bruteforcer))\r\n\r\nThis 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.\r\n\r\nIn this repository you will find two scripts:\r\n- `plotall.py`\r\n  - plots multiple .sub files simultaneously\r\n- `plot_delimiter.py`\r\n  - searches for similar chunks based on a delimiter value, groups and plots those chunks\r\n\r\n\r\nThe usage is described in the next chapter.\r\n\r\nRequirements:\r\n```bash\r\npip3 install -r requirements.txt\r\n```\r\n#\r\n## plotall.py\r\n```\r\nusage: plotall.py [-h] [--outfile OUTFILE] fname [fname ...]\r\n\r\nFlipper file plotter by ShotokanZH\r\n\r\npositional arguments:\r\n  fname              .sub file(s) to be plotted\r\n\r\noptional arguments:\r\n  -h, --help         show this help message and exit\r\n  --outfile OUTFILE  Out file (.html), defaults to 'out.html'\r\n```\r\nExample:\r\n```bash\r\npython3 -BO plotall.py sample_files/433_Tesla_* --outfile out/out_plotall.html\r\n```\r\nOutputs:\r\n![Plot All](imgs/plotall.png)\r\n\r\n#\r\n## plot_delimiter.py\r\n```\r\nusage: plot_delimiter.py [-h] --delimiter DELIMITER [--zero ZERO] [--one ONE] [--outfile OUTFILE] fname [fname ...]\r\n\r\nFlipper file plotter with delimiter by ShotokanZH\r\n\r\npositional arguments:\r\n  fname                 .sub file(s) to be plotted\r\n\r\noptional arguments:\r\n  -h, --help            show this help message and exit\r\n  --delimiter DELIMITER\r\n                        A specific delimiter (Y coordinates) that splits the sequence in chunks (a very low/high value?)\r\n  --zero ZERO           Y coordinates, draws a line and defines values around it as 0 (it's fancy) (requires --one)\r\n  --one ONE             Y coordinates, draws a line and defines values around it as 1 (it's fancy) (requires --zero)\r\n  --outfile OUTFILE     Out file (.html), defaults to 'out.html'\r\n```\r\nExample:\r\n```bash\r\npython3 -BO plot_delimiter.py sample_files/433_Tesla_* --delimiter -1000 --one 800 --zero 400 --outfile out/out_plot_delimiter.html\r\n```\r\nOutputs (In console)\r\n```\r\nlen(ylist)=5232 distance=70 maxnum=63\r\nSequence 0: 000011001111001111111111001001100100100001000010011001110000001001001\r\nSequence 1: 000011001111001111111111001001100100100001000010011001110000001001001\r\nSequence 2: 00001100111100111111111100100110010010000100001001100111000000100100\r\n[ CLIP ]\r\nSequence 60: 000011001111001111111111001001100100100001000010011001110000001001001\r\nSequence 61: 000011001111001111111111001001100100100001000010011001110000001001001\r\nSequence 62: 000011001111001111111111001001100100100001000010011001110000001001000\r\n```\r\nOutputs (.html file)\r\n![Plot Delimiter](imgs/plot_delimiter.png)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FShotokanZH%2Fflipper_sub_plotters_comparers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FShotokanZH%2Fflipper_sub_plotters_comparers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FShotokanZH%2Fflipper_sub_plotters_comparers/lists"}