freeotp-export-0.1.0
توضیحات
Parse a FreeOTP xml file and present QR codes or strings for import elsewhere
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | freeotp-export-0.1.0 |
| نام | freeotp-export |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Trevor Bergeron |
| ایمیل نویسنده | mal@sec.gd |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/freeotp-export/ |
| مجوز | EUPL-1.2 |
# FreeOTP-Export
[](https://pypi.org/project/freeotp-export/)
Rescue your OTP tokens from FreeOTP
## Installing
You can install directly through pip: `pip install freeotp-export`
Alternatively, to install from source, clone the repo or download and unpack a
tarball, then...
- If you already have [poetry](https://python-poetry.org/) installed, you can
just run:
```sh
$ poetry run freeotp-export tokens.xml
```
- Otherwise, use pip: `pip install --upgrade .`
- If you must, running `__main__.py` may work if you have the dependencies
installed.
## Usage
### Acquire the File
If your phone is rooted, you can just grab the file from
`/data/data/org.fedorahosted.freeotp/shared_prefs/tokens.xml`
Otherwise, start by enabling debugging on the phone and setting up the android
platform tools. Grab a backup off the app data by running
`adb backup org.fedorahosted.freeotp`, and when asked for a password, don't
enter one.
To read the resulting Android backup file, `backup.ab`, you can either use
[android-backup-extractor](https://github.com/nelenkov/android-backup-extractor):
```sh
$ abe unpack backup.ab - | tar xv --strip-components=3
```
Or yolo it by adding the tar header yourself:
```sh
$ ( printf "\x1f\x8b\x08\x00\x00\x00\x00\x00" ; tail -c +25 backup.ab ) | tar zxv --strip-components=3
```
You should then have the token file, `tokens.xml`.
### Read the File
Just run this tool, and it'll give you both the OTP URIs (`otpauth://...`) and
scannable QR codes. Note that Google Authenticator ignores the `digits`
parameter, so it does not work for issuers like Blizzard that use lengths other
than 6.
If you used `pip install`: `$ freeotp-export tokens.xml`
Or with Poetry: `$ poetry run freeotp-export tokens.xml`
After importing everything to a new app, be sure to delete `tokens.xml` and
`backup.ab`, since they contain all of your tokens!
نیازمندی
| مقدار | نام |
|---|---|
| >=7.3.1,<8.0.0 | qrcode |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8,<4.0 | Python |
نحوه نصب
نصب پکیج whl freeotp-export-0.1.0:
pip install freeotp-export-0.1.0.whl
نصب پکیج tar.gz freeotp-export-0.1.0:
pip install freeotp-export-0.1.0.tar.gz