View Single Post
Old 10-05-2014, 08:00 PM   #2
PatrikLundin
Junior Member
PatrikLundin began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Oct 2014
Device: k3, k4, gen1 fire
I wrote a thing that did this at one point, but I never wrote it up sufficiently to retrace my steps. Here's a few binaries I found though: http://www.nothisispatrik.com/remote.zip . It was (and is, though the kindle is in pieces at the moment) meant to have the file "bmb" in cgi-bin of the tiny webserver that came with the k3/k4 jailbreaks. When loading it (<IP>/cgi-bin/bmb) it grabs a copy from /dev/ of the screen, converts it to a .bmp and shoves it across along with a Content-type: image/bmp. The .html file is a rough-edged thing that shows it and some buttons linking to another cgi-bin file, fkey, which dunks the query string of anything calling it into the input device. Using that, I could emulate the keyboard and fiveway as well, essentially controlling it completely through a browser.

I tested it on a k3 and a few k4s (some were just motherboards, I was hoping to start using them as headless linuxes although unfortunately I could never get them to work without a battery) though, and I'm terribly sorry, my notes and experimental files are a total mess. I'll see if I find the source somewhere, it was compiled with that native c chain (tcc) someone posted. If I don't or if it's just as easy, it was a pretty quick and easy hack - the screen is readable in /dev in a fairly straightforward format so all that's needed is to convert it to anything viewable on the pc side (or do so on the pc side) and shove it out thought the web server or through some other port.

EDIT Here's a few sources http://www.nothisispatrik.com/sources.zip with some binaries, again, sorry that they're a mess. These look more like they spawn their own server on port 8080. I vaguely remember trying to do that and getting it to work sorta, but with it hanging if I accessed it too often before giving up on the whole thing.

Last edited by PatrikLundin; 10-05-2014 at 08:09 PM.
PatrikLundin is offline   Reply With Quote