![]() |
#1 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jul 2013
Device: K4 Wifi, no keyboard
|
telnetd on a K4
Hi guys!
I've successfully jailbroken my K4 (wifi, not touch, no keyboard) and installed the usbNetwork, and configured it so that I can SSH to it over Wifi. So a BIG thanks to everyone's hard work in making this possible - the hack itself and all the notes people have written have been oustanding! My intention is to use a number of jailbroken Kindles as displays around the house, to show mine and my wife's calendars, logs of missed phonecalls, and so on. I have a Linuxbox in the centre of it all doing the hard work, and I just need to get it sending commands to the Kindles. I'd like to control the Kindles by telnet rather than ssh - I know it's not particularly secure, but it makes it much easier to write code for my Linuxbox server if I'm just sending Kindles commands via telnet. It's only my home network, so I'm not too concerned about security. I've been unable to locate telnetd on my K4, and I've read rumours that some people have compiled statically-linked telnetd binaries to run on their Kindles instead. Is there anyone here who has done this? If so ... where did you get the binary from? Thanks again, chaps! |
![]() |
![]() |
![]() |
#2 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@Oddbloke: It's bundled (and launched) with the USBNetwork hack
![]() You'll just have to patch the script a tiny bit so that it punches a hole in the firewall for telnet when WiFi is enabled (cf. usbnet/bin/usbnetwork @L255). Keep in mind that the telnet daemon bundled with USBNetwork is patched to bypass any and all password/user checks, and drops you straight into a root shell. That may not be terribly desirable over WiFi. Last edited by NiLuJe; 07-25-2013 at 05:19 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Which allows you to run shell commands / scripts on the remote machine. Examples given in my series of ssh HowTo threads: https://www.mobileread.com/forums/sho...d.php?t=204942 Which was written to introduce the concept of local scripting of remote actions. |
|
![]() |
![]() |
![]() |
#4 | |||
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jul 2013
Device: K4 Wifi, no keyboard
|
Quote:
Quote:
Quote:
![]() |
|||
![]() |
![]() |
![]() |
#5 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
I made the changing of iptable rules very easy in the KUAL firewall.
You will probably recognize the structure if ever a Linux sysadmin. **ALSO** You do not have to modify files in the Amazon system image. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@Oddbloke: Oops. Was looking at my SVN WC, so, yeah, got the wrong L° ;D.
Yeah, I indeed meant the iptables line ![]() Something in the vein of Code:
iptables -A INPUT -i wlan0 -p tcp --dport telnet -j ACCEPT Last edited by NiLuJe; 07-27-2013 at 07:30 PM. |
![]() |
![]() |
![]() |
#7 | |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jul 2013
Device: K4 Wifi, no keyboard
|
Quote:
When I do a ps -x I notice that a sshd is running, but no telnet equivalent. What is the name of the executable that should be running that serves telnet? Also ... where are TELNET_DAEMON and TELNET_DAEMON_OPTS defined? I can't find them. |
|
![]() |
![]() |
![]() |
#8 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@Oddbloke: /mnt/us/usbnet/bin/busybox telnetd
You should find the pid of the currently running instance in the /mnt/us/usbnet/run/telnetd.pid pidfile. (The constants are defined in usbnet/bin/libkh) |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
telnetd für PB302 | reader42 | PocketBook | 4 | 10-25-2010 07:19 AM |
telnetd for PB302 | reader42 | PocketBook | 0 | 10-25-2010 05:49 AM |
sdk on osx? compile telnetd for PB? | iPocketBook | PocketBook | 0 | 06-29-2010 07:11 AM |
telnetd / gaining root | jesse | Kindle Developer's Corner | 32 | 03-23-2009 07:04 AM |