Re: netcat usage.
On 24/02/14 15:44, Peter Easthope wrote:
> References: <a7f1e371d326618f1b4877e7b9e45483.squirrel@easthope.ca>
> <530A9882.4040208@gmail.com>
>
> From: Scott Ferguson <scott.ferguson.debian.user@gmail.com>
> Date: Mon, 24 Feb 2014 11:55:30 +1100
>> NOTE: there four different "netcats" available in Wheezy.
>
> I found three.
> netcat-openbsd, netcat-traditional, netcat6.
OK. I miscounted transitional as a separate package.
>
> netcat-openbsd pleads ignorance.
> peter@dalton:~$ nc -l 25 -e ssmtp
> nc: invalid option -- 'e'
> ...
>
> netcat-traditional listens on the port; or appears to and does nothing.
> peter@dalton:~$ nc -l 25 -e ssmtp
> [gears humming]
What are the contents of the file "ssmtp"?
>
> netcat6 refuses.
> peter@dalton:~$ nc -l -p 25 -e ssmtp
"-p 25" is not the same as "-l 25"
> nc: bind to source :: 25 failed: Permission denied
> nc: bind to source 0.0.0.0 25 failed: Permission denied
> nc: failed to bind to any local addr/port
$ nc -lvv -p 1025 -w 2;nc -lvv -p 25
listening on [any] 1025 ...
no connection : Connection timed out
Can't grab 0.0.0.0:25 with bind : Permission denied
(netcat-traditional 1.10-40)
Kind regards
<snipped>
Reply to: