Hacker News new | ask | show | jobs
by KJBweb 3282 days ago
I created a Perl script called anyconnector which allows me to jump around between different Cisco Anyconnect VPN's using details stored in KeePass entries.

e.g.

  To connect: anyconnector -c env-name
  Disconnect: anyconnector -d
  Get status: anyconnector -s
It gets used by my team all day, every day.
1 comments

Looks pretty handy! How do you interface with the KeePass database? Is there a library? with Perl bindings?
There's quite a neat little library with an impressive amount of functionality for interacting with Keepass, called "File::KeePass;".

Here's a copy of the script itself: https://gist.github.com/kjbweb/38508fd92669101ec1fca4bea62bc...

It works on Mac's too, so I've been told.