Tested on Arduino NANO
$ git clone https://github.com/Allespro/ArduinoSecretKey.git
### build Arduino_NANO_sketch/Arduino_NANO_sketch.ino ###
$ cd ArduinoSecretKey
$ bash compile.sh #create binary file
$ ./lurk #run binary
After ./lurk
you will see:
That means that app wait key on /dev/ttyUSB0
.
Connect Arduino to USB, if everything is cool you will see:
And a train (sl
command):
Arduino have a password, and after connection they send password to /dev/ttyUSB0
./lurk
reading /dev/ttyUSB0
every second.
If sha256 hash of password from Arduino is same as hash stored in ./lurk
you will have acces to some_func()
from lurk.cpp
.
Have fun!