Yet another openconnect wrapper.
Project description
yaow
Yet another openconnect wrapper.
This is a simple script to make connecting with openconnect easier, along with storing mfa codes in your local keychain.
This makes your 2nd factor the physical device that the keychain is stored on.
Usage
% yaow --help
usage: yaow [-h] [--username USERNAME] [--server SERVER] [--servercert SERVERCERT] [--group GROUP] [--script SCRIPT] [--totp] [--email EMAIL]
[--folder FOLDER] [--regex REGEX] [--backupKeyringFile BACKUPKEYRINGFILE] [--debug]
optional arguments:
-h, --help show this help message and exit
--username USERNAME Username to connect to. The script will prompt for the password and store it in the keychain.
--server SERVER Server to connect to. Example https://1.1.1.1/vpn
--servercert SERVERCERT
Example: pin-sha256:k+H........=
--group GROUP Group name when connecting. Passed to --authgroup=
--script SCRIPT Script argument to pass to openconnect.
--totp TOTP 2-factor authentication
--email EMAIL Email mfa authentication
--folder FOLDER Email folder to watch for mfa token.
--regex REGEX Regular expression to match the mfa token.
--backupKeyringFile BACKUPKEYRINGFILE
Keyring file location if your os doesn't have a keyring installed. Defaults to /keyring.json.
--debug Enable debug traceback.
Example
~ % yaow --username user --servercert pin-sha256:pADF6S+9sLpt0uGWl3upUIFQX9+Gmv3kZr73r2D2As= --server https://1.2.3.4/ --group "Cisco AnyConnect VPN" --script 'vpn-slice 10.1.1.0/24'
Building and Installing
python3 setup.py bdist_wheel --universal
python3 -m pip install dist/yaow-*-py2.py3-none-any.whl
Changelog
0.0.1
- Initial Release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
yaow-0.0.1-py2.py3-none-any.whl
(17.5 kB
view details)
File details
Details for the file yaow-0.0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: yaow-0.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 17.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5213e868ceb51f484969db6477dd375cce8761be07f445bdb8faba437075ebe7 |
|
MD5 | cf653c339dd2ef760e80e6c95a0cd3fc |
|
BLAKE2b-256 | 56e41c75846b246c7c4af57fd78f53d10d2cc3ffadb1d57c82c2442225f52c55 |