telnetd from busybox

Search This thread

McLin

Senior Member
Feb 1, 2007
209
1
Lohfelden
www.cardomain.com
Hi,

I have ADP1.1 and Busybox installedd but when I start busybox telnetd and after that netstat the telnet server is running on 0.0.0.0 but I cant connect to host...

What must I do when I want run this telnetd server?
 

mzet

Senior Member
Mar 23, 2008
67
12
i had also that problem. When i disabled forking to daemon, it wrote that there was no free pty...

now i am using dropbear for remote controlling...
 

Moronig

Senior Member
Dec 2, 2010
419
206
Curitiba
Hi,

I have ADP1.1 and Busybox installedd but when I start busybox telnetd and after that netstat the telnet server is running on 0.0.0.0 but I cant connect to host...

What must I do when I want run this telnetd server?

I know this thread is really old (> 2 years) but I just stumbled across it, and I have an answer: you need to use the -l flag.

Here is an example

Code:
busybox telnetd -l /system/bin/sh

or if you have all the links for busybox installed, you can just run:

Code:
telnetd -l /system/bin/sh

ps: this is where the sh is in my rom, if it's not working for you, search for it on /sbin/, /system/sbin or /system/xbin.
 

JBData

Member
Jan 28, 2018
19
1
I know this thread is really old (> 2 years) but I just stumbled across it, and I have an answer: you need to use the -l flag.

Here is an example

Code:
busybox telnetd -l /system/bin/sh

or if you have all the links for busybox installed, you can just run:

Code:
telnetd -l /system/bin/sh

ps: this is where the sh is in my rom, if it's not working for you, search for it on /sbin/, /system/sbin or /system/xbin.

Wrong section!

Sent from my Mytouch 1.2 using XDA Premium App!

Device prerequisites :
- Rooted.
- Busybox installed.
- Androïd shell installed.
- WIFI hotspot activated.
PC prerequisite :
- Telnet client.
- Connected to WIFI hotspot.

My proper roadacts.
1) Connect to your device with androïd shell.
2) # su
3) # ifconfig
Get the IP (inet addr) of the first entry. It looks like 192.X.X.1 for me.
4) # which sh
Get the path of sh. /sbin/sh for me.
5) # busybox telnetd -l /sbin/sh -b 0.0.0.0
Start the telnet daemon, -b 192.X.X.1 ( IP from 3/ ) for the purists.
6) # ps | grep telnet
Check telnetd is well launched.
7) Go to your PC.
8) $ telnet 192.X.X.1 ( IP from 3/ )
/ #