[74] in 6.033-lab
Re: netcat
daemon@ATHENA.MIT.EDU (Kevin 'Bob' Fu)
Sun Mar 8 13:44:06 1998
To: H <wtharri@MIT.EDU>
Cc: 6.033-lab@MIT.EDU
In-Reply-To: Your message of Sun, 08 Mar 1998 13:20:34 -0500.
<199803081820.NAA11664@w20-575-88.MIT.EDU>
Date: Sun, 08 Mar 1998 13:44:10 EST
From: "Kevin 'Bob' Fu" <fubob@MIT.EDU>
Apparently the linux binary of nc v.1.10 parses the command line
arguments differently from what is documented. Type "nc -h" for the
usage. You can also read /mit/sipb/src/netcat/README for detailed
information and examples.
If you don't specify a listening port, netcat will just choose one.
>I am having problems using netcat. Running netcat as described in the
>handout gives this:
>
>athena:~>nc -l -v localhost -p 8000
>invalid port -p
try "nc -l -p 8000 -v localhost"
>If I run it without specifying a port, then seeting the proxy to the
>port that netcat chooses I get this:
>
>athena:~>nc -l -v localhost
>listening on [any] 34590 ...
>connect to [127.0.0.1] from localhost [127.0.0.1] 34591
>GET / HTTP/1.0
>Connection: Keep-Alive
>User-Agent: Mozilla/3.01 (X11; U; SunOS 5.5.1 sun4m)
>Pragma: no-cache
>Host: localhost:34590
>Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
>
>when loading localhost:34590
>
>However, loading http://c0re.10pht.com/~weld/netcat/readme.html gives
>this:
>
>athena:~>nc -l -v localhost
>listening on [any] 34592 ...
>connect to [127.0.0.1] from localhost [127.0.0.1] 34593
>GET / HTTP/1.0
>Connection: Keep-Alive
>User-Agent: Mozilla/3.01 (X11; U; SunOS 5.5.1 sun4m)
>Pragma: no-cache
>Host: localhost:34592
>Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
--------
Kevin E. Fu (fubob@mit.edu)
PGP key: finger fubob@monk.mit.edu