Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 01-07-2012, 10:27 PM   #1
recoco
Junior Member
recoco began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jan 2012
Device: Kindle 4
How to recover my Kindle root password?

Due to my fault, I lost my Kindle root password.Now I can not login in my Kindle in diagnosis mode using USB Network and can not login through WIFI SSH.Is there a way to recover it?I try to boot into recovery mode but no luck.
Thanks in advance!
recoco is offline   Reply With Quote
Old 01-08-2012, 02:26 AM   #2
tomsem
Wizard
tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.
 
Posts: 2,447
Karma: 2519673
Join Date: Apr 2009
Location: USA
Device: iPod Touch, Xoom, Kindle PW, iPad3, Fire HD2
Call Amazon CS. Recovery will probably require resetting the device, and re-loading your content.
tomsem is offline   Reply With Quote
Old 01-08-2012, 06:22 AM   #3
giorgio130
Time Waster
giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.
 
Posts: 415
Karma: 289158
Join Date: May 2011
Device: Kobo Glo and Aura HD
Did you change it from the default one?
giorgio130 is offline   Reply With Quote
Old 01-08-2012, 08:02 AM   #4
recoco
Junior Member
recoco began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jan 2012
Device: Kindle 4
Quote:
Originally Posted by giorgio130 View Post
Did you change it from the default one?
No.First, I changed root password from the default one that is mario.In this case I can login in USB Net mode using new root password, but I can not login in SSH using the same password.Then I stupidly upgrade the firmware to 4.0.1.Now I can not login in USB Net mode and of course in SSH
BTW, Both the password generate by the Python script and the password Changed by myself dont work.

Last edited by recoco; 01-08-2012 at 08:05 AM.
recoco is offline   Reply With Quote
Old 01-08-2012, 11:26 AM   #5
dionoea
Enthusiast
dionoea could sell banana peel slippers to a Deveel.dionoea could sell banana peel slippers to a Deveel.dionoea could sell banana peel slippers to a Deveel.dionoea could sell banana peel slippers to a Deveel.dionoea could sell banana peel slippers to a Deveel.dionoea could sell banana peel slippers to a Deveel.dionoea could sell banana peel slippers to a Deveel.dionoea could sell banana peel slippers to a Deveel.dionoea could sell banana peel slippers to a Deveel.dionoea could sell banana peel slippers to a Deveel.dionoea could sell banana peel slippers to a Deveel.
 
Posts: 26
Karma: 3060
Join Date: Dec 2011
Device: kindle 4
You could try the NFS hack mentioned here to run a script which would change the password (or install an ssh public key to allow password less logins): http://www.mobileread.com/forums/sho...&postcount=216

This is a bit complex to execute but it doesn't require working ssh access.

Edit: I've found an easier solution which doesn't require ssh access: http://www.mobileread.com/forums/sho...40#post1915440

Last edited by dionoea; 01-08-2012 at 12:46 PM.
dionoea is offline   Reply With Quote
Old 01-08-2012, 02:52 PM   #6
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
There is a simpler way. Just login as user framework and password mario. Then change your root password.

I just cracked it (again) with john to verify it. Then I successfully tested it using SSH over wifi to my K4NT:

ssh framework@<K4NT.wifi.ip.addr>

Use password mario.

If SSH was not working I would use the tar exploit, but in this case SSH does work so I would recommend the simpler way shown above.

UPDATE:

login user = framework, password = mario confirmed working on the following Kindle models:

DX - Kindle DX
DXG - Kindle DX Graphite
K3 - Kindle 3
K4NT - Kindle 4 (Non Touch)
KT - Kindle Touch

Somebody please test this login password on these models and report back here:

K1 - Kindle 1
K2 - Kindle 2

It looks like we have a universal login.


Last edited by geekmaster; 01-08-2012 at 03:46 PM.
geekmaster is offline   Reply With Quote
Old 01-08-2012, 08:40 PM   #7
recoco
Junior Member
recoco began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jan 2012
Device: Kindle 4
@geekmaster, great!
I'll try it.My kindle firmware is 4.0.1.

update:
Wow!It works on K4(NT) 4.0.1.

Last edited by recoco; 01-08-2012 at 08:52 PM.
recoco is offline   Reply With Quote
Old 01-08-2012, 10:05 PM   #8
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
Quote:
Originally Posted by recoco View Post
@geekmaster, great!
I'll try it.My kindle firmware is 4.0.1.

update:
Wow!It works on K4(NT) 4.0.1.
It works on ALL kindles (K1 and K2 not tested yet). But it is a user mode login (not root). It is really only good for looking around and making backup copies. No root write access from the framework user account.

A better way in your case is to put ENABLE_DIAGS on the USB Drive and reboot, then in diags, follow the instructions for installing developer mode, but instead of adding files to /usr/local, you want to fix your root password in /etc/shadow.

Last edited by geekmaster; 01-08-2012 at 11:21 PM.
geekmaster is offline   Reply With Quote
Old 01-09-2012, 03:12 AM   #9
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
After some questions appeared in the irc channel about this, I did a test on my touch.

While logged in as user framework:

ssh framework@192.168.15.244

I was able to see the contents of /etc/shadow:

cat /etc/shadow

Only the root and framework accounts had a string of "random" password characters in them.

The easy way to copy this file out so it can be cracked with john is through the clipboard. Copy what you see on the screen after the "cat" command. Then paste it in a file on the host PC, save it, and crack it with "John the Ripper".

The whole reason for this thread was the the original poster changed the root password and forgot what it was.

So, here are two solutions:

On k4nt only, boot from diags and start ssh, login as root, and fix or copy and crack /etc/shadow.

On any kindle, login as user framework with password mario, cat and copy /etc/shadow to the clipboard, then on the host PC paste the clipboard to a file, save it, and crack it. Then you will know your forgotten root password. Or it would be simple to edit shadow and copy the hashed password from diags root to main root. Whatever you want, you know? You have the power!

Quote:
Originally Posted by geekmaster View Post
...
For general poking around, or for making backups, all kindles let you login to a user account (no write access): username framework, password mario. It works on all my kindles.
After some questions appeared in the IRC channel about this:
Code:
01:15 < dionoea> and permissions were more what I was worried about. 
                 /etc/shadow is usually only readable by the shadow group 
                 and writable by the root user
01:17 < geekmstr> dionoea : framework has read-only access. That would 
                  let you copy shadow and use john to crack it.
01:17 < geekmstr> on any kindle.
01:18 < dionoea> and the framework user has sufficient rights to read 
                 /etc/shadow?
... I did a test on my kindle touch. While logged in as user framework:

ssh framework@192.168.15.244

I was able to see the contents of /etc/shadow:

cat /etc/shadow

Only the root and framework accounts had a string of "random" password characters in them.

The easy way to copy this file out so it can be cracked with john is through the clipboard. Copy what you see on the screen after the "cat" command. Then paste it in a file on the host PC, save it, and crack it with "John the Ripper".

The whole reason for this thread was the the original poster changed the root password and forgot what it was.

So, two solutions:

On k4nt only, boot from diags and start ssh, login as root, and fix or copy and crack /etc/shadow.

On any kindle, login as user framework with password mario, cat and copy /etc/shadow to the clipboard, then on the host PC paste the clipboard to a file, save it, and crack it. Then you will know your forgotten root password. Or it would be simple to edit shadow and copy the hashed password from diags root to main root. Whatever you want, you know? You have the power!

P.S. I posted similar content in another thread, because it "needed it", you know?

Last edited by geekmaster; 01-09-2012 at 03:36 AM.
geekmaster is offline   Reply With Quote
Old 08-01-2012, 01:28 AM   #10
ernalve
Member
ernalve began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Jan 2012
Device: kindle 5
Hi, I think I have a similar problem. I set up my password using ;un password "PASSWORD_HERE" and after that i lost all my permissions to cut or paste files to my kindle.

I'm using ubuntu and this happened while I was trying to complete the screensaver hack, more precisely when I tried to unrar the xterm extension. Permission denied.

Any help?

thanks!
ernalve is offline   Reply With Quote
Old 08-01-2012, 07:50 AM   #11
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
Quote:
Originally Posted by ernalve View Post
Hi, I think I have a similar problem. I set up my password using ;un password "PASSWORD_HERE" and after that i lost all my permissions to cut or paste files to my kindle.

I'm using ubuntu and this happened while I was trying to complete the screensaver hack, more precisely when I tried to unrar the xterm extension. Permission denied.

Any help?

thanks!
A similar problem should have a similar solution. What were your results when you tried the suggestions in my previous post?
geekmaster is offline   Reply With Quote
Old 09-12-2012, 04:29 PM   #12
nathansuchy
Enthusiast
nathansuchy can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameternathansuchy can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameternathansuchy can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameternathansuchy can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameternathansuchy can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameternathansuchy can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameternathansuchy can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameternathansuchy can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameternathansuchy can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameternathansuchy can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameternathansuchy can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
Posts: 47
Karma: 12694
Join Date: May 2012
Device: Kindle Keyboard Wifi
Setup ssh to login with private key then typein passwd root and set a password thats how i setup my kindle keyboard root account
nathansuchy is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tools fiona root password wordlist geekmaster Kindle Developer's Corner 7 12-11-2011 10:42 AM
password req to root the edge littleal enTourage eDGe 3 06-27-2011 01:34 AM
Calibre on linux: root password for unmounting? mhomann Devices 14 02-05-2011 11:26 AM
iLiad dropbear ssh: how to change root password? daudi iRex Developer's Corner 2 01-10-2008 04:49 PM
iLiad Thoughts on 2.5 and root password TadW iRex Developer's Corner 16 07-26-2006 03:37 AM


All times are GMT -4. The time now is 02:48 AM.


MobileRead.com is a privately owned, operated and funded community.