OneFactorAuth
A tool to bypass 2 factor authentication.
Usage
Installation
python3 -m pip install onefactorauth
Setup
- Go to https://receivesms.cc/sms/ and choose a phone number
- Run
1fa config -p <phone_number>(ex:1fa config -p <31616099881>) - Register the phone number under your account for 2 factor authentication
- Go to https://receivesms.cc/sms/<phone_number> (ex:
https://receivesms.cc/sms/31616099881) to see the text message - Complete the setup of this phone number in your account settings
- Take note of the pattern of the message, eg. how it is structured, where the code is
Invoking
$: 1fa code --help
usage: 1fa code [-h] [-c] [-t TIMEOUT] [-p PATTERN] [-m MAX_TIME]
Get 1fa code
options:
-h, --help show this help message and exit
-c, --clipboard copy to clipboard
-t TIMEOUT, --timeout TIMEOUT
timeout (s)
-p PATTERN, --pattern PATTERN
regex pattern for passcode
-m MAX_TIME, --max-time MAX_TIME
maximum age of the sms code msg (min)
- pattern for the passcode should have one capture group with the code
- ex: messages are like
SMS p***codes: 93209- pattern of
SMS p\*\*\*codes: (\d+)
- pattern of
- ex: messages are like
Your Uber code is 43890- pattern of
Uber code is (\d+)(partial matches are acceptable
- pattern of
- ex: messages are like
- bind
1fa code --pattern='code is (\d+)' --clipboardto a keybind- windows: use winhotkey
- macos: automator or icanhazshortcut
- linux: depends on your desktop environment, there's something in the built in settings for gnome and xfce
How
It uses https://receivesms.cc/sms/ to receive and scrape texts for your text passcode
Why
UCLA makes me 2fa every time I wanna log into my portal. No one's trying to hack my BruinBill, UCLA, just lemme use my account. I have 2fa setup for GitHub and Discord which are likelier targets for hacking and neither of them ask me for 2fa on every login.
License
Do WTF You Want To Public License
Developers
Developed by Ronak Badhe (r2dev2)
Metadata
Release files for onefactorauth 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| onefactorauth-0.1.1.tar.gz | 4.7 kB | Without provenance | Details for onefactorauth-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| onefactorauth-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for onefactorauth-0.1.1-py3-none-any.whl |
Total release size: 10.7 kB
Release files / onefactorauth-0.1.1.tar.gz
| Download URL | onefactorauth-0.1.1.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1dd754173256fca7b47ad758e69122fb4f62480d46d4ca4f40c0db63651cd5e2
|
|
BLAKE2b-256 checksum How to use checksums |
999b43ae6a2e4395b66fc73eb935635b9ed7ebb0b60eea5670875c2237bed87e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.12 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.15
|
Release files / onefactorauth-0.1.1-py3-none-any.whl
| Download URL | onefactorauth-0.1.1-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
925f206ab40d580fe28dfcc203c826e029f3d7a97d56c950954ec6cce7e1d7f0
|
|
BLAKE2b-256 checksum How to use checksums |
a0c5a01b615bae79af4441666ec7a28a38b9078703a87ce51c7a065bbfcec068
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.12 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.15
|
Security for onefactorauth 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.