PyPOTD CLI
Description
Using the pypotd library, pypotd-cli is a command-line tool to generate single or multiple ARRIS/CommScope-compatible password-of-the-day strings using a default or custom seed. Output defaults to JSON. Output can be written to a file, and will not output to console unless also provided with the verbose flag.
Installation
pip install pypotd-cli
Usage
usage: pypotd-cli [-d DATE] [-D] [-f {json,text}] [-h] [-o OUT_FILE] [-r START END] [-s SEED] [-v]
Password-of-the-Day Generator for ARRIS/CommScope Devices
options:
-d DATE, --date DATE generate a password for the given date
-D, --des output des representation of seed
-f {json,text}, --format {json,text} password output format, either text or json
-h, --help show this help message and exit
-o OUT_FILE, --out-file OUT_FILE password or list will be written to given filename
-r START END, --range START END generate a list of passwords given start and end dates
-s SEED, --seed SEED string (4-8 chars), used in password generation to mutate output
-v, --verbose print output to console even when writing to file
If your seed uses special characters, you must surround it with quotes
Examples:
Print password for current day using custom seed
$ python -m pypotd-cli -s test
{
"09/27/23": "FP8992KBS5"
}
Print DES for a custom seed
$ python -m pypotd-cli -s test -D
{
"DES": "CD.7D.DE.86.D7.04.4A.85"
}
Write a list of passwords to a file and print to console
$ python -m pypotd-cli -s test -r 2023-09-27 2023-09-30 -o range.json -v
{
"09/27/23": "FP8992KBS5",
"09/28/23": "JUSHXQ2S9O",
"09/29/23": "9OTOUA0UI3",
"09/30/23": "EDU83VUHE5"
}
$ cat ./range.json
{
"09/27/23": "FP8992KBS5",
"09/28/23": "JUSHXQ2S9O",
"09/29/23": "9OTOUA0UI3",
"09/30/23": "EDU83VUHE5"
}
Previous example, but with formatted text output
$ python -m pypotd-cli -s test -r 2023-09-27 2023-09-30 -o range.txt -v -f text
09/27/23: FP8992KBS5
09/28/23: JUSHXQ2S9O
09/29/23: 9OTOUA0UI3
09/30/23: EDU83VUHE5
$ cat ./range.txt
09/27/23: FP8992KBS5
09/28/23: JUSHXQ2S9O
09/29/23: 9OTOUA0UI3
09/30/23: EDU83VUHE5
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pypotd-cli-0.1.tar.gz
(3.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pypotd-cli-0.1.tar.gz.
File metadata
- Download URL: pypotd-cli-0.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59c6ed236c397f6733e2e5a4e1bcb39671eaf5d2e04b7712d2d6de6a59063c04
|
|
| MD5 |
7c2c0742a5441443c918f6a3127eb245
|
|
| BLAKE2b-256 |
05a9ad7c2c912b7bc113169e3dbd8f7b9f0b783568a2eff90230eac000fa6d35
|
File details
Details for the file pypotd_cli-0.1-py3-none-any.whl.
File metadata
- Download URL: pypotd_cli-0.1-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
511e2c9831bf1d9c7bba7ab9ecd00203f60aec487e1b05ad546a0023bde2a068
|
|
| MD5 |
9b1d8c9284747d1e7c137bc8b1bb6802
|
|
| BLAKE2b-256 |
c722fe8031cface5cadda9fd234375bfcdf06bc14467d7869a4679e36164a906
|