{"id":13499457,"url":"https://github.com/DroomOne/FlipperScripts","last_synced_at":"2025-03-29T05:31:23.123Z","repository":{"id":41055016,"uuid":"469389420","full_name":"DroomOne/FlipperScripts","owner":"DroomOne","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-29T18:10:32.000Z","size":14,"stargazers_count":171,"open_issues_count":3,"forks_count":11,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-02-13T00:50:21.854Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/DroomOne.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-03-13T14:05:31.000Z","updated_at":"2024-02-04T09:59:04.000Z","dependencies_parsed_at":"2024-01-13T09:35:59.086Z","dependency_job_id":"7ca8a618-879f-47b9-b650-b0352b20eee2","html_url":"https://github.com/DroomOne/FlipperScripts","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/DroomOne%2FFlipperScripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DroomOne%2FFlipperScripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DroomOne%2FFlipperScripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DroomOne%2FFlipperScripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DroomOne","download_url":"https://codeload.github.com/DroomOne/FlipperScripts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222465249,"owners_count":16988963,"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.316Z","updated_at":"2024-10-31T18:30:27.536Z","avatar_url":"https://github.com/DroomOne.png","language":"Python","funding_links":[],"categories":["Off-device \u0026 Debugging"],"sub_categories":["*Utility*","Utility"],"readme":"# dolphin_state.py\n\nReads the `DolphinStoreData` struct from `dolphin.state` files. \n\n## Usage\n\n### Reading \n\n`python3 dolphin_state.py \u003cpath-to-dolphin.state\u003e`\n\n### Writing \n\n**icounter**: Contains the amount of EXP flipper has\n\n**butthurt**: Level of happiness flipper has - `BUTTHURT_MAX = 14`\n\nWith the `--icounter` and `--butthurt` the output `dolphin.state` can be modified. The script will automaticly update the checksum for the file. The `--out` parameter must be set. \n\n#### Setting EXP\n`python3 dolphin_state.py dolphin.state --icounter=1337 --out dolphin-new.state`\n\n#### Setting the Mood (Butthurt)\n`python3 dolphin_state.py dolphin.state --butthurt=14 --out dolphin-new.state`\n\n#### Setting EXP and Mood \n`python3 dolphin_state.py dolphin.state --icounter=1337 --butthurt=14 --out dolphin-new.state`\n\n## Output\n\n```python \n[+] Read 40 bytes from dolphin.state\n[+] Updating icounter to 1337\n[+] Saving dolphin state to new-dolphin.state\n[+] Calculated new checksum: 161\n[+] Saved output to: new-dolphin.state\n[+] SavedStructHeader\n    magic:                       208\n    version:                     1\n    checksum:                    161\n    flags:                       0\n    timestamp:                   0\n\n[+] DolphinStoreData\n    DolphinAppSubGhz:\t\t 0\n    DolphinAppRfid:\t\t 20\n    DolphinAppNfc:\t\t 20\n    DolphinAppIr:\t\t 0\n    DolphinAppIbutton:\t\t 0\n    DolphinAppBadusb:\t\t 0\n    DolphinAppU2f:\t\t 2\n    butthurt_daily_limit:\t 46\n\n    flags:\t\t\t 0\n    icounter:\t\t\t 1337\n    butthurt:\t\t\t 14\n    timestamp:\t\t\t 1678561214 (2023-03-11 14:00:14)\n\n[+] Passport\n    level:\t\t\t 2\n    mood:\t\t\t Angry enough to leave\n    percent complete:\t\t 69.13%\n``` \n\n\n### Help\n\n```python\n\u003e python3 dolphin_state.py -h \nusage: dolphin_state.py [-h] file\n\nRead the contents of a flipper-zero's dolphin.state\n\npositional arguments:\n  file        Path of the dolphin.state file\n\noptional arguments:\n  -h, --help  show this help message and exit\n``` \n\n#### Reading / Writing the dolphin.state\n\n1. Use the file manager version of the qflipper software for PC. \n2. Open the `internal flash storage`\n3. Drag and drop the `dolphin.state` file to read/write it to the flipper!\n\n\n## Credits\nThanks to the FlipperZero team for developing this awsome product! \n\n- Lamp (Tarsad) : For the idea, and sharing his `dolphin.state` files. And explaining how one could read/write the `dolphin.state` file. \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDroomOne%2FFlipperScripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FDroomOne%2FFlipperScripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDroomOne%2FFlipperScripts/lists"}