https://github.com/romdim/autofill-2fa-text
https://github.com/romdim/autofill-2fa-text
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/romdim/autofill-2fa-text
- Owner: romdim
- Created: 2018-11-16T16:21:14.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-27T08:27:32.000Z (over 7 years ago)
- Last Synced: 2025-01-23T11:45:38.995Z (over 1 year ago)
- Language: Python
- Size: 4.88 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Autofill text with a 2FA code for use in VPN
### Requirements:
1. [Docker](https://www.docker.com/get-started).
2. `mi-.ovpn` file from admin (check your email).
3. `mi-.gauth` file from admin (check your email).
4. Your 4-digit vpn `pin` (check your email).
### Setup (osx):
1. Clone the repo.
2. In the repo root folder create a `.env` file and a `ovpn-creds.txt` like the according example files.
3. Put the secret from `mi-.gauth` to `.env` file.
4. Put your `login`, `<4-digid pin><123456>` to `ovpn-creds.txt`.
5. Open `mi-.ovpn` via text editor and put the pass to your `ovpn-creds.txt` file to the `auth-user-pass` line (`auth-user-pass /Users/...//.../ovpn-creds.txt`).
6. In the terminal go to the repo root folder and execute `docker-compose build` and then `docker-compose up`.
7. Go to [pritunl](https://client.pritunl.com/#install), download the client.
8. Run the client. Drag and drop your `mi-.ovpn` file to it.
9. Press `menu` (burger icon) => `connect`.
You also can run `docker-compose up -d` instead of `docker-compose up` for detached behavior.
Enjoy!