Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 02-05-2016, 11:51 AM   #286
Branch Delay
Connoisseur
Branch Delay ought to be getting tired of karma fortunes by now.Branch Delay ought to be getting tired of karma fortunes by now.Branch Delay ought to be getting tired of karma fortunes by now.Branch Delay ought to be getting tired of karma fortunes by now.Branch Delay ought to be getting tired of karma fortunes by now.Branch Delay ought to be getting tired of karma fortunes by now.Branch Delay ought to be getting tired of karma fortunes by now.Branch Delay ought to be getting tired of karma fortunes by now.Branch Delay ought to be getting tired of karma fortunes by now.Branch Delay ought to be getting tired of karma fortunes by now.Branch Delay ought to be getting tired of karma fortunes by now.
 
Posts: 95
Karma: 1699999
Join Date: Aug 2015
Device: Voyage
Quote:
Originally Posted by astrophys View Post
Hi Branch, thank you so much for this!

One question: I need to quit kindle USB mode when I open browser on kindle, but I can not eject kindle since the jb folder in kindle root directory is still in use (it's been serving up). I'm using OS X now.

Can I serve up jb folder which is not necessarily located in kindle root directory?
Whoops, sorry for the confusion. Just need the jb file moved to the kindle. Host the folder on your computer. Doesn't have to be on the kindle. (Probably shouldn't have put a jb file inside the jb folder. )

Also, this might work on different ports, but I'd highly recommend trying to host on port 80 instead of 8000.

Last edited by Branch Delay; 02-05-2016 at 12:01 PM.
Branch Delay is offline   Reply With Quote
Old 02-05-2016, 12:04 PM   #287
flideravi
Junior Member
flideravi began at the beginning.
 
flideravi's Avatar
 
Posts: 8
Karma: 10
Join Date: Jan 2016
Device: Kindle Touch Basic, KT2 - 90DD, firmware - 5.6.5(2730300038))
Post

Quote:
Originally Posted by Branch Delay View Post
Attached.

5.6.5 only, only tested on PW2/PW3 English firmware. Probably should hard reset before doing this. Up to you.

Copy jb to /mnt/us. (root directory mounted when attaching kindle to a computer)
Serve up jb folder on port 80 on a web server.
DNS redirect "a" to the web server via man in the middle, changing the server name on your network, adding an entry to your DNS server on your router, etc. (if you specify a wireless network and click advanced, you can put in a static DNS server)

i.e. after all of this, browsing to a should open up index.html.

Open the browser on the kindle, browse to the url "a". (with no quotes)
Read instructions.
Pray.
If it succeeds, you can then run NiLuJe's bridge update pack to complete the jailbreak. This just installs the developer key.

https://www.mobileread.com/forums/sho...postcount=1597

Will potentially put up a much easier method this weekend. Also will throw up an explanation sometime in the future.

Special thanks to Cyril for the CVE/original POC, the Gateway 3DS team for a slightly enhanced heap spray, NiLuJe for way too much, and Amazon for fixing it up.
Okay... That's a little confusing. Let me try and put it in points:

Step 1: Set up a web-server on your machine and host the JB files.
Step 2: Change the DNS settings in your network so that the address "a" points to the JB files served by your web-server.
Step 3: Point your kindle's browser to "a"
Step 4: Prey

My only confusion is if I have understood Step 1 correctly... Branch Delay, am I right?
flideravi is offline   Reply With Quote
Advert
Old 02-05-2016, 12:08 PM   #288
aceflor
Wizard
aceflor ought to be getting tired of karma fortunes by now.aceflor ought to be getting tired of karma fortunes by now.aceflor ought to be getting tired of karma fortunes by now.aceflor ought to be getting tired of karma fortunes by now.aceflor ought to be getting tired of karma fortunes by now.aceflor ought to be getting tired of karma fortunes by now.aceflor ought to be getting tired of karma fortunes by now.aceflor ought to be getting tired of karma fortunes by now.aceflor ought to be getting tired of karma fortunes by now.aceflor ought to be getting tired of karma fortunes by now.aceflor ought to be getting tired of karma fortunes by now.
 
aceflor's Avatar
 
Posts: 3,472
Karma: 48036360
Join Date: Aug 2009
Location: where the sun lives, or so they say
Device: Pocketbook Era, Pocketbook Inkpad 4, Kobo Libra 2, Kindle Scribe
Thank you Branch Delay for all your work and for keeping your word.
aceflor is offline   Reply With Quote
Old 02-05-2016, 12:14 PM   #289
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
@flideravi,

Step 2.5: add the "jb" file to the userstore of your Kindle.

And on what do you intend to prey, might I ask?



@Branch Delay,
I assume you mean, extract jb.zip as:
Code:
jb/jb
jb/frame.html
jb/index.html
jb/jb.html
Copy "jb/jb" to the Kindle userstore ( internally at "/mnt/us/jb", on your computer either "E:\jb" for Windows or "/media/Kindle/jb" depending on your linux distro).

Serve jb/*.html on a webserver.

DNS, etc

Last edited by eschwartz; 02-05-2016 at 01:03 PM.
eschwartz is offline   Reply With Quote
Old 02-05-2016, 12:17 PM   #290
Branch Delay
Connoisseur
Branch Delay ought to be getting tired of karma fortunes by now.Branch Delay ought to be getting tired of karma fortunes by now.Branch Delay ought to be getting tired of karma fortunes by now.Branch Delay ought to be getting tired of karma fortunes by now.Branch Delay ought to be getting tired of karma fortunes by now.Branch Delay ought to be getting tired of karma fortunes by now.Branch Delay ought to be getting tired of karma fortunes by now.Branch Delay ought to be getting tired of karma fortunes by now.Branch Delay ought to be getting tired of karma fortunes by now.Branch Delay ought to be getting tired of karma fortunes by now.Branch Delay ought to be getting tired of karma fortunes by now.
 
Posts: 95
Karma: 1699999
Join Date: Aug 2015
Device: Voyage
yep, looks good.
Branch Delay is offline   Reply With Quote
Advert
Old 02-05-2016, 12:18 PM   #291
Gabbb
Enthusiast
Gabbb began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Feb 2011
Device: Paperwhite 3
How do I prevent my kindle automatically updating whilst I'm fiddling with the jail break, or am I expected to be super quick whilst the wifi is on?
Gabbb is offline   Reply With Quote
Old 02-05-2016, 12:28 PM   #292
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
The update is a few hundred megabytes, and the OTA updates take a while to roll out to all devices (~weeks/~months).

Chances are you will be fine, but Branch Delay said he will put together an easier method soon, so I will leave him to that.
It would presumably involve an easy way to temporarily cut off all internet access and/or reroute it all to the webserver.

For general reference, the Block Big Brother firewall (KUAL hack) has a list of useful IP addresses to block out just Amazon: https://www.mobileread.com/forums/sho....php?p=2425330

Last edited by eschwartz; 02-05-2016 at 12:40 PM.
eschwartz is offline   Reply With Quote
Old 02-05-2016, 12:33 PM   #293
flideravi
Junior Member
flideravi began at the beginning.
 
flideravi's Avatar
 
Posts: 8
Karma: 10
Join Date: Jan 2016
Device: Kindle Touch Basic, KT2 - 90DD, firmware - 5.6.5(2730300038))
Quote:
Originally Posted by ad1217 View Post
Worked on my Voyage.

For those who want a slightly easier method, you can use create_ap with the "--redirect-to-localhost" option, instead of setting up dns. Example command:
Code:
sudo create_ap mlan0 --redirect-to-localhost -n test
The files can then be hosted with
Code:
python2 -m SimpleHTTPServer
This hosts on port 8000 by default, so navigate to 'a:8000'.
I would agree this as the simplest method to host the files. You can host the files over the port 80, and BD suggested, simply by adding 80 as an argument.

Code:
python2 -m SimpleHTTPServer 80
flideravi is offline   Reply With Quote
Old 02-05-2016, 12:42 PM   #294
Neru
!!!
Neru knows the way to San Jose.Neru knows the way to San Jose.Neru knows the way to San Jose.Neru knows the way to San Jose.Neru knows the way to San Jose.Neru knows the way to San Jose.Neru knows the way to San Jose.Neru knows the way to San Jose.Neru knows the way to San Jose.Neru knows the way to San Jose.Neru knows the way to San Jose.
 
Neru's Avatar
 
Posts: 115
Karma: 54482
Join Date: Jan 2016
Location: Lithuania
Device: Boox Note 2, Boox i86
Hello, thanks for releasing a jailbreak. I would like to ask, is this http://lifehacker.com/124212/geek-to...ome-web-server is fine for hosting files for jailbreak? For me it looks really confusing and I dont know where to start at, sorry for asking.

Last edited by Neru; 02-05-2016 at 12:49 PM.
Neru is offline   Reply With Quote
Old 02-05-2016, 12:50 PM   #295
ferbv
Junior Member
ferbv began at the beginning.
 
ferbv's Avatar
 
Posts: 6
Karma: 10
Join Date: Feb 2016
Device: Kindle Touch 2
Instructions unclear, wasted half an hour hard resetting the Kindle and trying to get past the "register your kindle" screen because I missed "step 2.5". Duh. It worked perfectly after copying the "jb" script to the Kindle's storage. Surprisingly straightforward too - just had to insert an entry into my router's hosts file.

I don't know who you are, Branch Delay, but you're awesome.

I'm hoping you'll do a writeup of how this works. WebKit exploit and fontconfig? Does fontconfig mess up the permissions on /etc/uks or something?

Edit: device is a Kindle Touch 2, language set to UK English.

Last edited by ferbv; 02-05-2016 at 01:57 PM.
ferbv is offline   Reply With Quote
Old 02-05-2016, 12:54 PM   #296
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
@Neru,

Apache should work fine, yes.

Although it is designed to do a lot, and python's SimpleHTTPServer is definitely easier to quickly spin up. Comes preinstalled on linux and OSX, but not Windows, of course.

Last edited by eschwartz; 02-05-2016 at 12:57 PM.
eschwartz is offline   Reply With Quote
Old 02-05-2016, 12:56 PM   #297
flideravi
Junior Member
flideravi began at the beginning.
 
flideravi's Avatar
 
Posts: 8
Karma: 10
Join Date: Jan 2016
Device: Kindle Touch Basic, KT2 - 90DD, firmware - 5.6.5(2730300038))
Quote:
Originally Posted by eschwartz View Post
Copy jb/jb to the Kindle userstore (/mnt/us/jb)
I run Ubuntu 15.10, and when I connect my kindle it is mounted to "/media/flide/Kindle" and there is no directory at all in "/mnt" folder. I think that is the reason I keep receiving the error. I have already tried putting the JB in the main Kindle directory (where you are supposed to keep all your books a.k.a "/media/flide/Kindle/").
flideravi is offline   Reply With Quote
Old 02-05-2016, 01:00 PM   #298
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
As @Branch Delay originally said, "Copy jb to /mnt/us. (root directory mounted when attaching kindle to a computer)"

/mnt/us is the internal path (what the Kindle's OS sees) to the userstore, that is the Kindle drive.

Replace "/mnt/us" on the Kindle with "/media/flide/Kindle" on your Ubuntu box.

Last edited by eschwartz; 02-05-2016 at 01:06 PM.
eschwartz is offline   Reply With Quote
Old 02-05-2016, 01:04 PM   #299
youyou92
Junior Member
youyou92 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jul 2015
Device: Kindle Paperwhite
hello I'm newbie here, but i have to ask ... if i had to host the "jb" files online does it work ??
youyou92 is offline   Reply With Quote
Old 02-05-2016, 01:05 PM   #300
flideravi
Junior Member
flideravi began at the beginning.
 
flideravi's Avatar
 
Posts: 8
Karma: 10
Join Date: Jan 2016
Device: Kindle Touch Basic, KT2 - 90DD, firmware - 5.6.5(2730300038))
Quote:
Originally Posted by eschwartz View Post
As @Branch Delay originally said, "Copy jb to /mnt/us. (root directory mounted when attaching kindle to a computer)"

/mnt/us is the internal path (what the Kindle's OS sees) to the userstore, that is the Kindle drive.

Replace "/mnt/us" on the Kindle with "/media/flide/Kindle" on your Ubuntu box.
Jailbreak Succeed!!!

BD... You are awesome!!
flideravi is offline   Reply With Quote
Reply

Tags
jailbreak, jailbreaking


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
KINDLE DEAL: Released: A Story of God’s Power Released in Pro Baseball ($ gospelebooks Deals and Resources (No Self-Promotion or Affiliate Links) 0 07-14-2011 09:12 PM
iPad iPad jailbreak released scottjl Apple Devices 25 05-08-2010 02:20 PM


All times are GMT -4. The time now is 07:35 PM.


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