On Tue, Sep 7, 2010 at 7:35 AM, Mike Hommey <[email protected]> wrote: > On Tue, Sep 07, 2010 at 12:27:14PM +0200, Salvo 'LtWorf' Tomaselli wrote: >> On Tuesday 07 September 2010 12:02:38 Jean-Christophe Dubacq wrote: >> > What about using nc ? >> > nc -l 9999 < /etc/passwd >> > >> > http://localhost:9999/ => bingo. >> > >> > We will probably not convince you, but there are way too many >> > alternatives to make the packaging effort worth the time. >> you convinced me, and i was well aware of that. >> But how can i convince someone with an apple that he has to download gcc and >> compile nc or even worst convince someone with windows? > > Someone with an apple or windows doesn't need a debian package of woof. > And someone with debian has nc.
That, and you don't really need nc on the client side. I believe most browsers would download the file even though nc won't send any HTTP headers. If that's not the case, try something like: printf 'HTTP/1.0 200 OK\nContent-Type: application/octet-stream\n\n' | cat - /etc/passwd | nc -l 9999 -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/[email protected]

