]> git.gir.st - sendHID.git/blob - hardpass-demo.sh
readme: dwc2 gets appended instead of overwriting the whole file
[sendHID.git] / hardpass-demo.sh
1 #!/bin/bash
2
3 # 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.
4 # see github.com/girst/hardpass -> readme for how to initialize the driver.
5 # since 471f0ed text to type is read from stdin instead of the last parameter!
6
7 PASSWORD_STORE_GPG_OPTS="--passphrase 123456789" pass show github.com/girst | head -n 1 | sudo ./scan /dev/hidg0 2 2
8 # `-------´ `--------------´ `-------´ `----´ `--------´ ^ ^
9 # '>demo password '>pass-entry | get only | | | '>unicode method
10 # '>first line | | '>keyboard layout
11 # | '>device file of hid-gadget
12 # '>name of executable
Imprint / Impressum