{"id":16928078,"url":"https://github.com/ptrcnull/openftm","last_synced_at":"2025-06-16T02:08:13.281Z","repository":{"id":130413722,"uuid":"416796489","full_name":"ptrcnull/openftm","owner":"ptrcnull","description":"Open-source FortiToken TOTP generator","archived":false,"fork":false,"pushed_at":"2023-01-02T16:51:30.000Z","size":1,"stargazers_count":28,"open_issues_count":3,"forks_count":11,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-11T17:51:03.243Z","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/ptrcnull.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-13T15:22:15.000Z","updated_at":"2025-03-13T11:59:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"022f3c90-df24-4a84-bc29-abc073b62537","html_url":"https://github.com/ptrcnull/openftm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ptrcnull/openftm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptrcnull%2Fopenftm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptrcnull%2Fopenftm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptrcnull%2Fopenftm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptrcnull%2Fopenftm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ptrcnull","download_url":"https://codeload.github.com/ptrcnull/openftm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptrcnull%2Fopenftm/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260083863,"owners_count":22956409,"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-10-13T20:35:50.359Z","updated_at":"2025-06-16T02:08:13.262Z","avatar_url":"https://github.com/ptrcnull.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# openftm\n\nOpen-source implementation of FortiToken's TOTP algorithm.\n\nYou can extract the actual TOTP seed and use it with apps like [KeePassXC](https://keepassxc.org/) or [andOTP](https://github.com/andOTP/andOTP), make sure to set the period to 60 seconds.\n\n## Prequisites\n\nFor this to work, you need to extract 2 things - [SSAID](https://developer.android.com/reference/android/provider/Settings.Secure#ANDROID_ID) and encrypted seed.\nThis needs root access on your Android device.\n\n### SSAID\n\nRun this command in a rooted shell:\n```\n# grep com.fortinet /data/system/users/0/settings_ssaid.xml                                                                 \n```\n\nOutput should look like this:\n```xml\n\u003csetting id=\"32\" name=\"10309\" value=\"12dddfc4a3b45678\" package=\"com.fortinet.android.ftm\" defaultValue=\"12dddfc4a3b45678\" defaultSysSet=\"false\" tag=\"null\" /\u003e\n```\n\nCopy the value from quotes and paste it to the script as `android_ssaid`.\n\n### Seed\n\nThe seed is stored in app's database: `/data/data/com.fortinet.android.ftm/databases/FortiToken.db`\nYou can copy the file and open it with an SQLite3 editor, or run this command: (I know it's ugly, but does the job)\n```\n# grep -Eao 'totp.{64}' /data/data/com.fortinet.android.ftm/databases/FortiToken.db | cut -c5-\n```\nCopy the output and paste it as `seed`.\n\n## Usage\n\nInstall requirements with `pip3 install -U -r requirements.txt`, then run with `python3 generate.py`.\n\n## Disclaimer\n\nAll product and company names are trademarks™ or registered® trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fptrcnull%2Fopenftm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fptrcnull%2Fopenftm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fptrcnull%2Fopenftm/lists"}