View Full Version : Open X server port
design256 10-18-2006, 04:54 AM While experimenting with IDS, I found that if the Iliad experiences a connection error (like it does connecting to my IDS proxy :rolleyes: ),
then it pops up a dialog and waits for a click.
While it is in this state, the network is up and running and there is an unprotected X server running on port 6000. You can happily run X clients on it from another local host or grab window information etc.
While this is very cool (see attached screenshots), I haven't found a way to exploit it. You can run apps to be displayed on the Iliad and see how they look. You can kill off windows. But I haven't found any way of making it do anything more interesting. Ideas anybody?
Here's the output from xlsclients -l:
[chris@apple sbin]$ xlsclients -l
Window 0x600001:
Machine: ereader
Name: pageBar
Icon Name: pageBar
Command: pageBar
Instance/Class: pageBar/PageBar
Window 0xa00001:
Machine: ereader
Name: contentLister
Icon Name: contentLister
Command: contentLister
Instance/Class: contentLister/ContentLister
Window 0xc00001:
Machine: ereader
Name: connectionMgr
Icon Name: connectionMgr
Command: connectionMgr
Instance/Class: connectionMgr/ConnectionMgr
Window 0xe00001:
Machine: ereader
Name: downloadMgr
Icon Name: downloadMgr
Command: downloadMgr
Instance/Class: downloadMgr/DownloadMgr
Window 0x400004:
'' Name: Panel 0
Icon Name: Panel 0
Command: /usr/bin/matchbox-panel --size 39 --no-menu --bgcolor White --no-session --default-apps mb-applet-icon-container
... and here's xwininfo for the matchbox panel:
[chris@apple sbin]$ xwininfo -id 0x400004
xwininfo: Window id: 0x400004 "Panel 0"
Absolute upper-left X: 0
Absolute upper-left Y: 935
Relative upper-left X: 0
Relative upper-left Y: 935
Width: 768
Height: 39
Depth: 8
Visual Class: StaticGray
Border width: 0
Class: InputOutput
Colormap: 0x20 (installed)
Bit Gravity State: ForgetGravity
Window Gravity State: NorthWestGravity
Backing Store State: NotUseful
Save Under State: no
Map State: IsViewable
Override Redirect State: no
Corners: +0+935 -0+935 -0-50 +0-50
-geometry 768x39+0-50
Antartica 10-18-2006, 07:16 AM While it is in this state, the network is up and running and there is an unprotected X server running on port 6000. You can happily run X clients on it from another local host or grab window information etc.
Please, can you do an "xdpyinfo" on the Iliad's display?
I'm specially interested in the XTEST extension, so to use xautomation (that's the package of the xte program) to "emulate" a keyboard using the remote keyboard O:-).
BTW, what OS version are you using (2.6.1 or 2.7)?
Thanks :-)
--
Ps: Hello again to the forum. I've been missing quite a bit...
Dario
(...still thinking of ways to re-enable the ssh daemon in modern firmwares...)
yokos 10-18-2006, 07:34 AM BTW, what OS version are you using (2.6.1 or 2.7)?
Photos show icons which are new in 2.7. :happy2:
design256 10-18-2006, 07:57 AM Please, can you do an "xdpyinfo" on the Iliad's display?
I'm specially interested in the XTEST extension, so to use xautomation (that's the package of the xte program) to "emulate" a keyboard using the remote keyboard O:-).
BTW, what OS version are you using (2.6.1 or 2.7)?
Here you are. Looks like XTEST is there. I'm using 2.7 now, but this access also works with 2.6.1 - just didn't want to mention it close to the 2.7 release in case they patched it :)
design256 10-18-2006, 09:42 AM Please, can you do an "xdpyinfo" on the Iliad's display?
I'm specially interested in the XTEST extension, so to use xautomation (that's the package of the xte program) to "emulate" a keyboard using the remote keyboard O:-).
BTW, what OS version are you using (2.6.1 or 2.7)?
Thanks :-)
--
Ps: Hello again to the forum. I've been missing quite a bit...
Dario
(...still thinking of ways to re-enable the ssh daemon in modern firmwares...)
xte from xautomation works fine - you can send it mouse moves/clicks and it will perform them for you.
Antartica 10-18-2006, 10:31 AM Here you are. Looks like XTEST is there. I'm using 2.7 now, but this access also works with 2.6.1 - just didn't want to mention it close to the 2.7 release in case they patched it :)
Great! Thanks.
Ranting...
It's a pity that the included minimo (/usr/bin/browser) seems to have keyboard shortcuts disabled (at least, in the 2.4 scratchbox setup I can't make it to open dialogs, which is consistent with the tests that lhl did in http://www.mobileread.com/forums/showthread.php?t=7297).
We only need to be able to open a text file and save it in /etc/er_registry.txt... that should not be very difficult O:-). Another approach would be to be able to make a symbolic link (what symbolic link is left as an exercise to the reader ;-).
End of rant.
Antartica 10-18-2006, 10:39 AM xte from xautomation works fine - you can send it mouse moves/clicks and it will perform them for you.
Perfect. Now... anybody knows if it's possible to make a valid pdf file with some custom text at the beginning? O:-).
Yes, I know about the mandatory "begin with '%PDF-1.'" but ajter that there are commands and objects. It's possible to have an object with plain text spreaded in some lines and still have a valid pdf? Any PDF gurus here?
design256 10-18-2006, 11:06 AM Great! Thanks.
Ranting...
It's a pity that the included minimo (/usr/bin/browser) seems to have keyboard shortcuts disabled (at least, in the 2.4 scratchbox setup I can't make it to open dialogs, which is consistent with the tests that lhl did in http://www.mobileread.com/forums/showthread.php?t=7297).
We only need to be able to open a text file and save it in /etc/er_registry.txt... that should not be very difficult O:-). Another approach would be to be able to make a symbolic link (what symbolic link is left as an exercise to the reader ;-).
End of rant.
x2x also works - allowing complete control with the mouse and keyboard of the remote client. Problem is that the download manager sits on top of all other windows that are running and quitting it closes the net connection. Is there any way to make X bring a hidden window to the top?
scotty1024 10-18-2006, 01:16 PM x2x also works - allowing complete control with the mouse and keyboard of the remote client. Problem is that the download manager sits on top of all other windows that are running and quitting it closes the net connection. Is there any way to make X bring a hidden window to the top?
You could try commanding the download manager window to lower itself.
scotty1024 10-18-2006, 01:18 PM Perfect. Now... anybody knows if it's possible to make a valid pdf file with some custom text at the beginning? O:-).
Yes, I know about the mandatory "begin with '%PDF-1.'" but ajter that there are commands and objects. It's possible to have an object with plain text spreaded in some lines and still have a valid pdf? Any PDF gurus here?
I can slice, dice and frappe PDF. What exactly are you looking for? (BTW sprinkles cost extra)
Antartica 10-19-2006, 01:24 AM I can slice, dice and frappe PDF. What exactly are you looking for? (BTW sprinkles cost extra)
I'm looking for a pdf file that one can execute in bash (by means of a source or include (".") from another bash script), so if there are some invalid lines at the beginning it's not very important (it's a source of the file, not a direct script exec, so it doesn't have to begin with the she-bang).
Then, the pdf file should begin in ascii (the beginning of PDFs is usually ascii, albeit with lines delimited with CRs instead of NLs, so I don't expect problems here), and the "object with the plain-text script" has to be near to the beginning (to be sure that bash don't bail out because of extrange characters).
Is it easily doable?
Thanks scotty1024 :-)
P.S.: I have not tested with pdftk, but I think it doesn't put the embedded files near the the beginning of the generated pdf... or am I mistaken?
arivero 10-19-2006, 05:52 AM I'm specially interested in the XTEST extension, so to use xautomation (that's the package of the xte program) to "emulate" a keyboard using the remote keyboard O:-).
Hmm so I could use my PDA keyboard via wifi into the iLiad, no usb drivers needed. Nice!
x2x also works - allowing complete control with the mouse and keyboard of the remote client. Problem is that the download manager sits on top of all other windows that are running and quitting it closes the net connection. Is there any way to make X bring a hidden window to the top?
Can you confirm the version (and build number) of the web browser...? Thanks :D (I really must around to doing this mysql...)
design256 10-19-2006, 06:29 AM Can you confirm the version (and build number) of the web browser...? Thanks :D (I really must around to doing this mysql...)
do you mean the minimo version? If so, it's 0.009
do you mean the minimo version? If so, it's 0.009
Does it have a build number/date...?
design256 10-19-2006, 09:48 AM You could try commanding the download manager window to lower itself.
Even better than that, the KDE kicker app works a treat - it shows all the (Iliad's) windows on the selector panel and lets you choose one to bring to the front. So I can now launch minimo, xpdf etc etc.
... and external links work from minimo!!! ...
I'm off to see if ftp:// links work.. If they do, then we'll be there.
design256 10-19-2006, 10:29 AM Even better than that, the KDE kicker app works a treat - it shows all the (Iliad's) windows on the selector panel and lets you choose one to bring to the front. So I can now launch minimo, xpdf etc etc.
... and external links work from minimo!!! ...
I'm off to see if ftp:// links work.. If they do, then we'll be there.
Sadly FTP didn't work - FTP is not a registered protocol But I can now browse the web from my Iliad - albeit by a rather complicated route...
arivero 10-19-2006, 10:45 AM While it is in this state, the network is up and running and there is an unprotected X server running on port 6000. You can happily run X clients on it from another local host or grab window information etc.
Now you can improvise a cradle next to your normal monitor and use the iLiad as an auxiliary E-Ink monitor!
BTW, how is it handling the update of the screen?
Antartica 10-19-2006, 10:49 AM Even better than that, the KDE kicker app works a treat - it shows all the (Iliad's) windows on the selector panel and lets you choose one to bring to the front. So I can now launch minimo, xpdf etc etc.
Excellent!
... and external links work from minimo!!! ...
I'm off to see if ftp:// links work.. If they do, then we'll be there.
Hopes up... (Update: it was too beatiful to be true... sniff)
BTW, I've been investigating the 2.4 minimo (/usr/bin/browser) a bit:
What we knew:
- It's profoundly hacked :-)
- doesn't implement the buttons
- doesn't implement the cache: functionality
What I've discovered:
- it opens always with a predefined geometry (that was easy)
- it does some IPC using UDP sockets to communicate with pageBar (send messages to UDP port 50073, receive them in UDP port 50068)
- it implements some dialogs (sometimes it has displayes me a gtk error dialog, I don't remember what it was.
Yes, that means that pageBar is listening in UDP port 50073. What I don't know is the communication method with displayMgr (as it crashes in scratchbox :-/ ).
design256 10-19-2006, 11:18 AM Now you can improvise a cradle next to your normal monitor and use the iLiad as an auxiliary E-Ink monitor!
BTW, how is it handling the update of the screen?
Kicker forces a screen update each time you click a button which is great. Otherwise it is possible to get the poor thing hopelessly confused - particularly if you have browser/xpdf running locally and various apps running remotely.
Clicking the page icon at the bottom usually sorts things out, but not always.
scotty1024 10-21-2006, 04:51 PM Active sockets for 2.7 (well 2.7 with dropbear running...):
root@ereader:~# netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 *:x11 *:* LISTEN
tcp 0 0 *:ssh *:* LISTEN
udp 0 0 *:1024 *:*
udp 0 0 *:1025 *:*
udp 0 0 *:1026 *:*
udp 0 0 *:1027 *:*
udp 0 0 *:1028 *:*
udp 0 0 *:1029 *:*
udp 0 0 *:1035 *:*
udp 0 0 *:1036 *:*
udp 0 0 *:1037 *:*
udp 0 0 *:1038 *:*
udp 0 0 *:1039 *:*
udp 0 0 *:1040 *:*
udp 0 0 *:50065 *:*
udp 0 0 *:50070 *:*
udp 0 0 *:50071 *:*
udp 0 0 *:50072 *:*
udp 0 0 *:50073 *:*
udp 0 0 *:50076 *:*
udp 0 0 localhost.localdo:50555 *:*
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ACC ] STREAM LISTENING 588 /tmp/.X11-unix/X0
|