removed .git from subdirectories
[hardpass.git] / send_hid / hardpass-demo.sh
1 #!/bin/bash
2 # (C) 2016 Tobias Girstmair, released under the GNU GPL
3
4 # 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.
5 # see github.com/girst/hardpass -> readme for how to initialize the driver.
6 # since 471f0ed text to type is read from stdin instead of the last parameter!
7
8 PASSWORD_STORE_GPG_OPTS="--passphrase 123456789" pass show github.com/girst | head -n 1 | sudo ./scan /dev/hidg0 2 2
9 # `-------´ `--------------´ `-------´ `----´ `--------´ ^ ^
10 # '>demo password '>pass-entry | get only | | | '>unicode method
11 # '>first line | | '>keyboard layout
12 # | '>device file of hid-gadget
13 # '>name of executable
Imprint / Impressum