{"id":27133423,"url":"https://github.com/leomartindev/mi-home-token-extractor","last_synced_at":"2025-04-07T23:48:31.667Z","repository":{"id":42694494,"uuid":"307793634","full_name":"LeoMartinDev/Mi-Home-token-extractor","owner":"LeoMartinDev","description":"A simple way to find Xiaomi Home devices tokens from an iOS unencrypted backup","archived":false,"fork":false,"pushed_at":"2024-05-31T09:44:05.000Z","size":45,"stargazers_count":20,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-06T21:35:43.573Z","etag":null,"topics":["homebridge","xiaomi"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/LeoMartinDev.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}},"created_at":"2020-10-27T18:32:01.000Z","updated_at":"2024-09-04T13:09:04.000Z","dependencies_parsed_at":"2023-01-27T07:30:54.843Z","dependency_job_id":null,"html_url":"https://github.com/LeoMartinDev/Mi-Home-token-extractor","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeoMartinDev%2FMi-Home-token-extractor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeoMartinDev%2FMi-Home-token-extractor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeoMartinDev%2FMi-Home-token-extractor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeoMartinDev%2FMi-Home-token-extractor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LeoMartinDev","download_url":"https://codeload.github.com/LeoMartinDev/Mi-Home-token-extractor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247749968,"owners_count":20989713,"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":["homebridge","xiaomi"],"created_at":"2025-04-07T23:48:31.166Z","updated_at":"2025-04-07T23:48:31.645Z","avatar_url":"https://github.com/LeoMartinDev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Xiaomi Home token extractor\n\nA simple script to extract Xiaomi Home devices tokens from an unencrypted iOS backup.\n\n\u003e Only tested on MacOS.\n\n## Installation\n\n### MacOS\n\n**macOS x64**\n```sh\ncurl -o- https://github.com/LeoMartinDev/Mi-Home-token-extractor/releases/latest/download/mi-home-token-extractor-macos-x64 | bash\n```\n\n**macOS arm64**\n```sh\ncurl -o- https://github.com/LeoMartinDev/Mi-Home-token-extractor/releases/latest/download/mi-home-token-extractor-macos-arm64 | bash\n```\n\n### Linux\n\n```sh\ncurl -o- https://github.com/LeoMartinDev/Mi-Home-token-extractor/releases/latest/download/mi-home-token-extractor-linux | bash\n```\n\n### Windows\n\n```sh\ncurl -o- https://github.com/LeoMartinDev/Mi-Home-token-extractor/releases/latest/download/mi-home-token-extractor-windows | bash\n```\n\nAlternatively, clone the repo, run `bun install` and launch the script `bun start` !\n\n## Usage\n\n1. Connect your Xiaomi Home devices in the Xiaomi app.\n2. Create an unencrypted iOS backup: https://support.apple.com/en-us/118426#computer\n3. Run `token-extractor`.\n4. Profit!\n\n```sh\n\u003e ./token-extractor-macos-arm64\n\nFound 1 backups\nUsing backup iPhone de Léo (2024-05-29T14:11:51.000Z)\nFound 1 devices\n\nDEVICE    My device\nTOKEN     unencrypted_token\nMAC       CC:CC:CC:CC:CC:CC\nLOCAL IP  0.0.0.0\nSSID      MY_SSID\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleomartindev%2Fmi-home-token-extractor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleomartindev%2Fmi-home-token-extractor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleomartindev%2Fmi-home-token-extractor/lists"}