![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
Password Protection
I wrote a little password checker for kobo readers. The main idea is to intercept the start up script at a certain point and ask for the password. If the correct password is entered the start up script continues, if a wrong password is entered (you get three chances), the device is powered off.
The security level is rather low.
As you see the protection level is not very high, but might suffice for some situations. As for the first security loophole, you might consider activating "Automatically power off after" in the Sleep & power settings.The second security loophole (factory reset) might actually be welcomed in case you forget the password. Last edited by tshering; 02-09-2014 at 12:58 PM. |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
On installation and usage
It is possible to install this appliction on its own right. For the sake of simplicity, however, I treat it for the time being as part of the Kobo Start Menu. Therefore, install the Kobo Start Menu, and then activate the password protection.
Before activating the password protection, I would recommend, you check it out and get accustomed to its usage. Testing from the main menu go to "tools>activate>bouncer>test the bouncer.msh" (in some older versions of KSM: "scripts>activate>bouncer>test the bouncer.msh"); you should see something like the first image of this post.
Activating from the main menu go to "tools>activate>bouncer>settings.msh (in some older versions of KSM: "scripts>activate>bouncer>settings.msh"); you should see something like the second image of this post. Set a new password and check it as you did while testing. If you set a new password (and you don't delete it), the password protection is activated. After the next reboot, you cannot continue without typing the correct password. You can anytime call settings.msh in order to change or delete the password. If you forget your password, you will have to factory reset your reader. Note: the "%" key toggles between masked and un-masked display of the input text. USE THIS APPLICATION AT YOUR OWN RISK Last edited by tshering; 05-19-2015 at 05:42 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
updated posts one and two
|
![]() |
![]() |
![]() |
#4 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46
Karma: 303048
Join Date: Feb 2013
Location: Brazil
Device: Kindle Paperwhite 3
|
|
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,466
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
|
I tried it and it seems to work, but not in Koreader.
Luck; Ken |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
How exactly did you try to use it in Koreader? Did you try to call it from Koreader's suspend shell script? If I am not mistaken this script is not used any longer. One could try to call the password protection from somewhere in the lua code.
|
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,466
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
|
I just used the powerslider flick into suspend. I haven't looked at adding your code to the reader ui, yet. It is not something I am in need of, but I have seen it asked for recently. I just started it in KSM, and checked for it in Koreader. It works fine in KSM and I suspect in Nickel. I'll take a closer look soon.
Luck; Ken |
![]() |
![]() |
![]() |
#8 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
I tried it. The problem is that the password check executable cannot read touch input while koreader has a lock on it. Since I do not speak lua, I cannot solve this.
EDIT: In case somebody wants to play around with this. This is what I did Spoiler:
Last edited by tshering; 04-24-2016 at 07:37 AM. |
![]() |
![]() |
![]() |
#9 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 76
Karma: 25460
Join Date: Feb 2015
Device: kobo h2o
|
hi
tshering you said this patch can run on its own and not as a part of KSM can u tell how to run it that way ? |
![]() |
![]() |
![]() |
#10 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
Quote:
I do not recommend to do this, but if you insist:
Example (script fragment): Code:
# ... set here variables and so on # ... answer=$(PATHTOEXECUTABLE/kbbouncer MYPASSWORD -qws) if [ "$answer" == "failed" ]; then /bin/busybox poweroff fi Note: Use only a-z, A-Z, 0-9 as part of the password! Edit: You may also have a look at checkpw.sh in the spoiler of post #8. Last edited by tshering; 10-02-2015 at 06:52 AM. |
|
![]() |
![]() |
![]() |
#11 |
Enthusiast
![]() Posts: 45
Karma: 20
Join Date: Apr 2015
Device: Kobo Aura/Glo/Kindle PW2
|
Wonderful works!
But I have a little problem. If it was dark and no light in the room, how would I enter the password, I can not see without light and (kobo aura light button doesn't work Start menu 08) |
![]() |
![]() |
![]() |
#12 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
@mkeles84
You could configure KSM to switch on the light at every start. To do that you would run (KSM home) configure, and select [general]startwithlighton=true. |
![]() |
![]() |
![]() |
#13 | |
Banned
![]() Posts: 8
Karma: 10
Join Date: Jan 2016
Device: none
|
Quote:
I put the KoboRoot.tar in .kobo and ejected. No restart or anything. |
|
![]() |
![]() |
![]() |
#14 |
Linux User
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,282
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
|
If the file is still there it has the wrong name/is in the wrong location...
If the file is gone something else was wrong with it... |
![]() |
![]() |
![]() |
#15 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Unbreakable password protection? | Freakstone | Kindle Developer's Corner | 0 | 04-20-2011 02:48 PM |
PDF files with password protection | juansconnected | Kobo Reader | 1 | 01-14-2011 04:48 PM |
Any password protection? | KlondikeGeoff | Amazon Kindle | 3 | 01-20-2008 10:42 AM |