[riot-notifications] [RIOT-OS/RIOT] examples/default: PoC user/password login for for the terminal (#12191)
Juan I Carrano
notifications at github.com
Tue Sep 10 16:01:46 CEST 2019
### Contribution description
This is a _very_ rough proof of concept showing how a simple user/password prompt can be used at the serial terminal to protect the shell.
To be effective, this requires a **shell that can be exited**, in order to be able to log off.
The login prompt has a built in delay between attempts (1 second at lest, 7 seconds each three failed attempts).
### Testing procedure
This won't work quite right in native because the serial/pty handling isdifferent there (we are not turning off the OS' line bufering and that gets in the way, as well as ctrl-d)
I get the best experience using miniterm.py (I used a samr21):
miniterm.py --eol LF /dev/ttyACM0 115200
### Issues/PRs references
Built on top of #10788 .
You can view, comment on, or merge this pull request online at:
-- Commit Summary --
* sys/shell: Exit the shell on ctrl-D
* tests/shell: Test exit with control-D.
* examples/default: PoC user/password login for for the terminal
-- File Changes --
M examples/default/Makefile (1)
A examples/default/login.c (121)
M examples/default/main.c (10)
M sys/shell/shell.c (4)
M tests/shell/main.c (8)
M tests/shell/tests/01-run.py (2)
-- Patch Links --
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications