Code Monkey home page Code Monkey logo

kees's Introduction

Kees

A command line interface for reading passwords from 1Password vaults.

Agile Bits does not officially support Linux. This lack of agility bites, so I built a vault reader, but cannot build a vault writer. Fortunately, I use my phone for creating accounts so I only need read support on Linux.

This project was influenced by George Brock's 1pass

Using it

Get the password for one of your accounts like this: kees <account name>.

$ kees gmail

You now have 15 seconds to enter your password before a background process cleans your pastebuffer. This reduces the chance an attackers can retrieve your password from your pastebuffer.

If multiple possible matches are found, kees will list them.

$ kees "soundcloud - foo"
Password: 
Possible matches:
- Soundcloud - jmsdnns
- Soundcloud - american food
- Soundcloud - locke

Install It

Go get it

$ cd $SOMEWHERE
$ git clone https://github.com/jmsdnns/kees

Then install it

$ cd kees
$ pip install .

And then make it a command by editing kees.sh and copying it to your shell.

Vault Path

Kees assumes the keychain is stored at ~/1Password.agilekeychain, unless you tell it otherwise.

Using kees.sh

Add this line after kees.sh is sourced

export ONEPASSWORD_KEYCHAIN=/path/to/your/keychain

Python flag

The Python code accepts a --path flag.

$ kees --path ~/whatever/1Password.agilekeychain gmail

kees's People

Contributors

jmsdnns avatar

Stargazers

 avatar

Watchers

 avatar  avatar

kees's Issues

kees.sh does not handle multiple account matches

If kees is given an account name that doesn't match well, it reports all the potential matches it found.

Ideally, it should act like this:

$ kees "soundcloud - foo"
Password: 
Possible matches:
- Soundcloud - jmsdnns
- Soundcloud - american food
- Soundcloud - locke

tmpfile logic is broken

There seem to be cases where the password doesn't get cleaned out from the pastebuffer. Not sure why yet.

cli improvements

The current cli approach relies too much on pipenv, which may cause issues depending on how it is installed / used, and also whether or not it is used.

Further, the cli should take steps to clear the copy buffer, as this is an underrated attack vector.

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.