-
-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to pause to avoid capturing passwords? #216
Comments
What happens if you |
Thanks for your quick answer! This is a good idea, although the issue is that I start logkeys with I realize the same problem would happen if logkey had a Thanks a lot! |
Does the above |
doing the first Thanks! |
My take at this issue would be to create new script, /usr/local/etc/logkeys-pause.sh doing $(kilall -STOP logkeys), and a new program, let's say "llkp" with the same permissions as "llkk". |
The problem with shell scripts is that they can't setuid, so sudo password would still be required. |
it seems hence that using the method with sudo is difficult? Another approach would maybe try to not use sudo but yet to write to an encrypted file? do you have any recommendation or suggestions about this approach instead? thanks a lot! |
Something like: $ sudo logkeys ... -o - | mcrypt --force --flush > logkeys.log
$ cat logkeys.log | mcrypt --decrypt |
I know that scripts can't use setuid, that's why I suggested writing new setuid'ed program in C: #include <cstdlib>
#include <unistd.h>
int main() {
setuid(0);
exit(system(SYS_CONF_DIR "/logkeys-pause.sh")); // SYS_CONF_DIR defined in CXXFLAGS in Makefile.am
} |
Hi
I would like to avoid to capture my passwords in the logfile. One strategy would be to pause logkeys for a bit. Have you considered adding a
-pause
option? Or do you have any script to recommend to stop, wait a bit and restart (using previously selected device, possibly manually inputted)?Thanks!
The text was updated successfully, but these errors were encountered: