Full Disclosure mailing list archives

Re: Re: Full-disclosure Digest, Vol 7, Issue 2


From: "Gary E. Miller" <gem () rellim com>
Date: Tue, 13 Sep 2005 01:11:30 -0700 (PDT)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yo Eric!

On Mon, 12 Sep 2005, fd () ew nsci us wrote:

What if I am otherhost?  Is there a facility for something like
[root@otherhost]# cat /dev/tcp/me/listen/5000 > yesterhost-hda.img

Well, I can do it with just nc on the sending side. Takes a bit of work.
Only works with udp and if there is any possibility of packet loss there
will be the obvious issues..

You need two 2 sessions on the receiving host.  One on the sending
host.

First, start the listening client:

host1-screen1# cat - < /dev/udp/host2/5001

Find out what the originating port is:

host1-screen2# # netstat -n | fgrep 5001
udp        0      0 [host1]:36285    [host2]:5001      ESTABLISHED

36285 is the port we want.  Now plug that in to sending nc:

host2-screen1# ls -l | nc host1 36285  -u -p 5001

Viola!  The output of "ls -l" now appears on host1-screen1!

Prolly not what the bash maintainers had in mind, but it does work. YMMV.

RGDS
GARY
- ---------------------------------------------------------------------------
Gary E. Miller Rellim 20340 Empire Blvd, Suite E-3, Bend, OR 97701
        gem () rellim com  Tel:+1(541)382-8588 Fax: +1(541)382-8676

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDJom18KZibdeR3qURAvFYAJ0cMbCw9LGchzSzOqpD1rNB3zerEACgq+eL
5Y6xP/UJmgK28ckA8u90qdY=
=9Iw1
-----END PGP SIGNATURE-----

_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/


Current thread: