Git Product home page Git Product logo

cisco-anyconnect-cli's Introduction

PyPi Version Alt

cisco-anyconnect-cli

Cisco AnyConnect client command line with KeePass support

Installation

KeePassHTTP Plugin is required vpncli.exe from Cisco AnyConnect Secure Mobility Client is required
pip install cisco_anyconnect_cli

Usage

Usage: anyconnect [OPTIONS] COMMAND [ARGS]...

  Connect to Cisco AnyConnect VPN Gateway

  I need vpncli.exe and will search in:

  - Current working directory
  - C:\Program Files (x86)\Cisco\Cisco AnyConnect Secure Mobility Client
  - C:\Program Files\Cisco\Cisco AnyConnect Secure Mobility Client"
  - /opt/cisco/anyconnect/bin
  - In -p/--path given to the command (as file or directory)
  - In CISCO_ANYCONNECT_HOME environment variable
  - Availability in PATH variable

Options:
  -p, --path PATH  Directory or path to vpncli.exe
  -h, --help       Show this message and exit.

Commands:
  connect     Connect to a cisco vpn server
  disconnect  Disconnect
  state       Get connection status

Connect

User and password will be fetched from Keepass if no user is given

Usage: anyconnect connect [OPTIONS] URL

  Endpoint address

Options:
  -u, --user TEXT                 Give username instead of KeePass lookup
  -p, --password TEXT             Give password instead of KeePass lookup
  --autorespond / --noautorespond Defines whether connect will automatically
                                  respond to login banners
  -k, --insecure                  Allow insecure server connections
  --help                          Show this message and exit.

Examples

Entry in KeePass must be named or have a configured URL equal vpn-server-url.
$ anyconnect connect vpn.example.com

Without KeePass 
$ anyconnect connect vpn.example.com -u user -p pass

$ anyconnect disconnect

Changelog

v0.6

  • Added support for insecure connections

v0.5

  • Added linux support

v0.4

  • Added autorespond to login banners (thanks @ott-egs-plan)

v0.2

  • Added state command (thanks @GOST-UA)

v0.1

  • Initial version with basic features

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.