-
Notifications
You must be signed in to change notification settings - Fork 23
/
hardpass-demo.sh
13 lines (11 loc) · 1.1 KB
/
hardpass-demo.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
# (C) 2016 Tobias Girstmair, released under the GNU GPL
# this is a demo that fetches a password from the password store (must be initialized) and types it over the usb-hid interface to the host computer.
# see github.com/girst/hardpass -> readme for how to initialize the driver.
# since 471f0ed text to type is read from stdin instead of the last parameter!
PASSWORD_STORE_GPG_OPTS="--passphrase 123456789" pass show github.com/girst | head -n 1 | sudo ./scan /dev/hidg0 2 2
# `-------´ `--------------´ `-------´ `----´ `--------´ ^ ^
# '>demo password '>pass-entry | get only | | | '>unicode method
# '>first line | | '>keyboard layout
# | '>device file of hid-gadget
# '>name of executable