possibility of 'nc' supporting '-l' ? was: Re: [BusyBox] telnet daemon

Tom Oehser tom at toms.net
Sun Apr 14 18:23:03 UTC 2002


I suppose -e would be too much to hope for.  The way I actually use it is:

 c7:5:respawn:/usr/bin/nc -l -p 23 -e /usr/bin/telnetd

in a sysv inittab where /usr/bin/telnetd is:

 #!/bin/sh
 /bin/dd count=1 > /dev/null 2>&1
 /usr/bin/ile /bin/ash -i

(the dd just throws away some telnet protocol garbage, then it works
because ile has a pseudo tty).

-Tom

On Sat, 13 Apr 2002, Matt Kraai wrote:

> Date: Sat, 13 Apr 2002 08:56:28 -0700
> From: Matt Kraai <kraai at alumni.cmu.edu>
> To: Tom Oehser <tom at toms.net>
> Cc: Saiful Azmi Hamzah <tongkat7 at hotmail.com>, busybox at busybox.net
> Subject: Re: possibility of 'nc' supporting '-l' ? was: Re: [BusyBox]
>     telnet daemon
>
> On Fri, Apr 12, 2002 at 09:41:49PM -0400, Tom Oehser wrote:
> > I do this on tomsrtbt with 'nc', and it requires the telnet-in er to set
> > binary and mode character- but that requires the real nc, busybox nc can't
> > listen.
>
> Yes it can, I added support for listening some time ago.
> Unfortunately, I forgot to document it.
>
> Matt
>




More information about the busybox mailing list