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 11-20-2013, 06:13 PM   #1
yossarian17
Junior Member
yossarian17 can program the VCR without an owner's manual.yossarian17 can program the VCR without an owner's manual.yossarian17 can program the VCR without an owner's manual.yossarian17 can program the VCR without an owner's manual.yossarian17 can program the VCR without an owner's manual.yossarian17 can program the VCR without an owner's manual.yossarian17 can program the VCR without an owner's manual.yossarian17 can program the VCR without an owner's manual.yossarian17 can program the VCR without an owner's manual.yossarian17 can program the VCR without an owner's manual.yossarian17 can program the VCR without an owner's manual.
 
Posts: 1
Karma: 182572
Join Date: Nov 2013
Device: PW2
Paperwhite 2: jailbreak!

I am pleased to announce that we have a software jailbreak for the Paperwhite 2. No cables required and no need to open the device.

NOTE: THIS SCRIPT IS FOR HACKERS. IF YOU DON'T UNDERSTAND WHAT YOU ARE DOING DON'T USE IT AND USE THE K5+PW1+PW2 JAILBREAK INSTEAD.

The script in the attachment installs a jailbreak script in the kindle user directory. The jailbreak script will be run automatically after the kindle is ejected.

This script must be run in a terminal on a linux system. If you don't have a linux installed you could use a live cd (Ubuntu, Knoppix, etc.)

The script can be used for three different types of jailbreak:

1) open a root shell on the kindle
2) run an arbitrary user script
3) install the K5+PW1+PW2 jailbreak by NiLuJe

The root shell jailbreak is the safest mode since it doesn't change anything on the kindle (but it gives you enough rope to shoot yourself in the foot).

The old Paperwhite1 jailbreak doesn't work out of the on the Paperwhite2, you should use the jailbreak package for K5+PW1+PW2 by NiLuJe.

This jailbreak should work also on the Paperwhite1, even with firmware versions where the previous kpw_jb.zip is no more working.

See the README for more information.

UPDATE: new version 1.1 which uses the jailbreak package by NiLuJe.
Attached Files
File Type: gz pw2-jailbreak-1.1.1.tar.gz (5.1 KB, 2899 views)

Last edited by yossarian17; 11-22-2013 at 02:45 AM. Reason: Update
yossarian17 is offline   Reply With Quote
Old 11-20-2013, 07:30 PM   #2
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 4,628
Karma: 4440239
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2
Yup, appears to work on 5.3.9, too... .

Will look into it a bit more tomorrow, I don't think we even need to bother with the waiting for it to run...
NiLuJe is offline   Reply With Quote
Old 11-20-2013, 07:46 PM   #3
knc1
Embedded Cheerleader
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,217
Karma: 5830430
Join Date: Feb 2012
Device: Too many.
Problem in the JB script

The JB script accesses the PW1 jailbreak file using an attachment ID.

That is, in general, a bad thing to do.
Because if that attachment file is ever updated or ever re-uploaded, its attachment ID will change and the script will break.

This version of the script should really be pulled until a stable URL for the PW1 jailbreak file can be used in it.
knc1 is offline   Reply With Quote
Old 11-20-2013, 07:57 PM   #4
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 4,628
Karma: 4440239
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2
I'll push an updated bridge tomorrow, the PW1 stuff is missing a step to be useful on the PW2 .

In the meantime, pinpointed the vector: it was staring us right in the face.... >_<"
Bold move, I'd never have assumed that we could even exploit that .

Congrats again ;-).

Last edited by NiLuJe; 11-20-2013 at 08:02 PM.
NiLuJe is offline   Reply With Quote
Old 11-20-2013, 10:01 PM   #5
eureka
but forgot what it's like
eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.
 
Posts: 710
Karma: 2290994
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
Yeah, congratulations! (Didn't test it, though, I don't have PW2013.)

God, I was like "I don't know at all how it allows to execute arbitrary user programs. Where in provided script it does the magic?" for some ashaming minutes. Script isn't pointing to jaibreak method directly, so I got lost in its structure. Then I found "the magic" and felt Zen. Uhm-m-m-m... Can't say a word. Great work!
eureka is offline   Reply With Quote
Old 11-21-2013, 12:08 AM   #6
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,903
Karma: 6677485
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
OMFG, this is AWESOME!!!

Great work, nice method And yeah,@eureka, it also took me a few minutes to understand how it really works.

I suggest two things:
- a bugfix in the script: use "wget -O " instead of plain wget. Otherwise wget will download the file as 'attachment.php?...', at least here. And FWIW, you can use http://ixtab.tk/kpw_jb.zip as a stable URL.
- a simple zip file compatible with windows users, which would include only the update* and jb.sh, and a modified README.txt with Windows Line breaks.

Congratulations again!
ixtab is offline   Reply With Quote
Old 11-21-2013, 12:53 AM   #7
mallums
Enthusiast
mallums can extract oil from cheesemallums can extract oil from cheesemallums can extract oil from cheesemallums can extract oil from cheesemallums can extract oil from cheesemallums can extract oil from cheesemallums can extract oil from cheesemallums can extract oil from cheese
 
Posts: 34
Karma: 1000
Join Date: Oct 2011
Location: Tejas
Device: PW/PW2
How soon to a naive user-grade JB? I may try it on my nifty new PW2-2013 US 3G model, now, but I may chicken out and wait for a self-contained version, if one is possible. How confident are we that the PW1 JB script-stuff will work on PW2? What PW2 compatible apps are already available?

I'm mostly attracted to user fonts for the PW2.
mallums is offline   Reply With Quote
Old 11-21-2013, 12:58 AM   #8
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,903
Karma: 6677485
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Quote:
Originally Posted by mallums View Post
How soon to a naive user-grade JB? I may try it on my nifty new PW2-2013 US 3G model, now, but I may chicken out and wait for a self-contained version, if one is possible.
Try this.

Quote:
How confident are we that the PW1 JB script-stuff will work on PW2? What PW2 compatible apps are already available?
Pretty confident. Most of the stuff has already been tested internally and seems to work. You may still have to wait for a couple of weeks for the installers to be updated, and for a few other tools to be updated to support the PW2. But it should be picking up momentum now that the door is open.
Quote:
I'm mostly attracted to user fonts for the PW2.
Hmm... no idea about that.
ixtab is offline   Reply With Quote
Old 11-21-2013, 01:17 AM   #9
mallums
Enthusiast
mallums can extract oil from cheesemallums can extract oil from cheesemallums can extract oil from cheesemallums can extract oil from cheesemallums can extract oil from cheesemallums can extract oil from cheesemallums can extract oil from cheesemallums can extract oil from cheese
 
Posts: 34
Karma: 1000
Join Date: Oct 2011
Location: Tejas
Device: PW/PW2
Well, I bit the bullet, and ran the PW1 {PW2 JB option 3} jailbreak. Note: I had already updated to 5.4.2!

The script ran, but I am not sure if anything actually happened. There exists a file on the home screen named jb-sh. Looking in it, I see a line:

/mnt/us/jailbreak.sh: line 409: /mnt/us/jailbreak.sh: Permission denied

Any thoughts?

Last edited by mallums; 11-21-2013 at 01:19 AM.
mallums is offline   Reply With Quote
Old 11-21-2013, 01:24 AM   #10
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,903
Karma: 6677485
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Quote:
Originally Posted by mallums View Post
Well, I bit the bullet, and ran the PW1 jailbreak. Note: I had already updated to 5.4.2!

The script ran, but I am not sure if anything actually happened. There exists a file on the home screen named jb-sh. Looking in it, I see a line:

/mnt/us/jailbreak.sh: line 409: /mnt/us/jailbreak.sh: Permission denied

Any thoughts?
Hmmm... interesting. No idea what this is about, check the files and see what's going on in there and what could be causing it. Maybe it's as simple as replacing "${FILE_SELF} forked &" by "/bin/sh ${FILE_SELF} forked &" in jailbreak.sh, so try that.

I have to run to work now, so maybe someone else can jump in if that doesn't work. In any case, it's working in principle, so it will only be a matter of hours or at most days now until everything will run smoothly.

EDIT: Or rather, replace "sh /mnt/us/jailbreak.sh" in jb.sh by "sh /mnt/us/jailbreak.sh forked"

Last edited by ixtab; 11-21-2013 at 01:28 AM.
ixtab is offline   Reply With Quote
Old 11-21-2013, 01:25 AM   #11
ghostkid
Junior Member
ghostkid began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Sep 2013
Device: kindle paperwhite
congratulation!nice work, You are great!
ghostkid is offline   Reply With Quote
Old 11-21-2013, 01:37 AM   #12
CrazyCoder
Connoisseur
CrazyCoder knows the chase is better than the catch.CrazyCoder knows the chase is better than the catch.CrazyCoder knows the chase is better than the catch.CrazyCoder knows the chase is better than the catch.CrazyCoder knows the chase is better than the catch.CrazyCoder knows the chase is better than the catch.CrazyCoder knows the chase is better than the catch.CrazyCoder knows the chase is better than the catch.CrazyCoder knows the chase is better than the catch.CrazyCoder knows the chase is better than the catch.CrazyCoder knows the chase is better than the catch.
 
Posts: 65
Karma: 121468
Join Date: Apr 2011
Location: St. Petersburg, Russia
Device: K3, K4NT, Nook STwGL
Quote:
Originally Posted by ixtab View Post
EDIT: Or rather, replace "sh /mnt/us/jailbreak.sh" in jb.sh by "sh /mnt/us/jailbreak.sh forked"
It worked!
CrazyCoder is offline   Reply With Quote
Old 11-21-2013, 01:54 AM   #13
mallums
Enthusiast
mallums can extract oil from cheesemallums can extract oil from cheesemallums can extract oil from cheesemallums can extract oil from cheesemallums can extract oil from cheesemallums can extract oil from cheesemallums can extract oil from cheesemallums can extract oil from cheese
 
Posts: 34
Karma: 1000
Join Date: Oct 2011
Location: Tejas
Device: PW/PW2
2nd try at pw2 JB

Quote:
Originally Posted by ixtab View Post
Hmmm... interesting. No idea what this is about, check the files and see what's going on in there and what could be causing it. Maybe it's as simple as replacing "${FILE_SELF} forked &" by "/bin/sh ${FILE_SELF} forked &" in jailbreak.sh, so try that.

I have to run to work now, so maybe someone else can jump in if that doesn't work. In any case, it's working in principle, so it will only be a matter of hours or at most days now until everything will run smoothly.

EDIT: Or rather, replace "sh /mnt/us/jailbreak.sh" in jb.sh by "sh /mnt/us/jailbreak.sh forked"
Your version ran with that one change made.

I got jailbreak splash and some diagnostic comments over the splash, then the message: "Removing obsolete files" under the "CLEANING UP". It hung at that point. I waited ten minutes, then pressed the sleep button. The kindle immediately flashed the "JAILBREAK SUCEEDED" and went to sleep. Woke up normally, with standard jailbreak log, and jb-sh. I will post them in a minute.

I think the shell script jb.sh needs another tweak or two, and then Bob will be your uncle.
mallums is offline   Reply With Quote
Old 11-21-2013, 02:01 AM   #14
dsmid
Linux devotee
dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.
 
dsmid's Avatar
 
Posts: 552
Karma: 2053595
Join Date: Feb 2011
Device: Kindle 3, Kindle 4B, Kindle PW2
Congratulations.
However this seems to be quite easy to fix for Lab126. Maybe you should have waited for a full update before making it public.

EDIT: 5.4.2 actually is a full update ! Nice timing

Last edited by dsmid; 11-21-2013 at 02:13 AM.
dsmid is offline   Reply With Quote
Old 11-21-2013, 02:04 AM   #15
mallums
Enthusiast
mallums can extract oil from cheesemallums can extract oil from cheesemallums can extract oil from cheesemallums can extract oil from cheesemallums can extract oil from cheesemallums can extract oil from cheesemallums can extract oil from cheesemallums can extract oil from cheese
 
Posts: 34
Karma: 1000
Join Date: Oct 2011
Location: Tejas
Device: PW/PW2
JB PW 5.4.2 log files

Here are my log files.

Note: This was on the new 5.4.2 FW, so good news there!
Note 2: The JB script left jb.sh on the root directory of the Kindle; should I look for other files left behind, and delete those?


So. Am I jailbroken, or not? jb-sh.txt seems to indicate a problem with the dev certs.
Attached Files
File Type: txt jb-sh.txt (747 Bytes, 199 views)
File Type: txt jailbreak-log.txt (711 Bytes, 165 views)

Last edited by mallums; 11-21-2013 at 02:07 AM.
mallums is offline   Reply With Quote
Reply

Tags
5.4.0, jailbreak, paperwhite

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
K5 How to remove jailbreak from Paperwhite? sk83 Kindle Developer's Corner 32 05-20-2014 08:19 PM
K5 Kindle Paperwhite Jailbreak (5.2.0 - 5.3.1, 5.3.4, 5.3.5) ixtab Kindle Developer's Corner 632 05-18-2014 04:14 PM
Jailbreak Kindle Paperwhite 5.3.8 paulera Kindle Developer's Corner 3 11-07-2013 03:55 PM
Kindle paperwhite jailbreak (5.3.3) NoriPP Kindle Developer's Corner 19 02-02-2013 02:45 PM
K5(Touch/Paperwhite). Jailbreak 5.1.x;5.2.0 cristbo Amazon Kindle 2 11-22-2012 02:34 AM


All times are GMT -4. The time now is 08:31 AM.


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