Kindle/Root Kindle Paperwhite PW3

From Wiki
< Kindle
Revision as of 19:07, 31 January 2018 by Marcluer (talk | contribs) (Die Seite wurde neu angelegt: „== Kindle Paperwhite 3 (2015) Wifi == * SN: G090 G1xx xxxx xxxx * Original Firmware: 5.9.2.0.1 (3262860017) * <u>generate root pw with python</u> (for my kind…“)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Kindle Paperwhite 3 (2015) Wifi

  • SN: G090 G1xx xxxx xxxx
  • Original Firmware: 5.9.2.0.1 (3262860017)
  • generate root pw with python (for my kindle root / fionaXXX)
import hashlib
print("fiona%s"%hashlib.md5("<your kindle serial number with no spaces and all capital letters>\n".encode('utf-8')).hexdigest()[13:16])
  • Serial port
    • reboot through gui
    • interrupt boot at uboot by pressing key
    • bootm 0xE41000
    • EXIT LOGIN
    • login using above credentials
mkdir /tmp/main
mount /dev/mmcblk0p1 /tmp/main
vi /tmp/main/etc/passwd     # remove "x" in first line
  • reboot
  • SSH
    • copy usbnet via usb port
mkdir -p /usr/local/bin
ln -s /mnt/us/usbnet/sbin/sshd /usr/sbin/sshd
ln -s /mnt/us/usbnet/bin/dropbearmulti /usr/local/bin/dropbear
  • /etc/upstart/sshd.conf
# ssh server for login
# needs to stop before localfs, will do by hand

#start on started system
#stop on (stopping system or ota-update)

start on framework_ready
stop on stopping system


export LANG LC_ALL
env LIBC_FATAL_STDERR_=1
env STDERR=/tmp/sshd.err

respawn

expect fork
#exec /usr/local/sbin/dropbear -r /usr/local/etc/dropbear/dropbear_rsa_host_key 2>> $STDERR
exec /usr/sbin/sshd

post-start script
    iptables -A INPUT -p tcp --dport 22 -j ACCEPT
end script

post-stop script
    source /etc/upstart/functions
    libc_scan
end script