Archive for August, 2008

Capturing a streamed media via mplayer

Posted in Uncategorized on August 22, 2008 by aghoras
mplayer -noframedrop -dumpstream "<url>" -dumpfile <file>
or
mplayer -playlist "<url>" -dumpstream  -dumpfile <file>

Bidirectional netcat

Posted in Uncategorized on August 6, 2008 by aghoras

I found this on the internet.  I havn’t tried it myself:

Bidirectional netcat …

While netcat is excellent, one thing it doesn’t seem to do is to work as a generic proxy between two applications. The shell doesn’t help, providing only unidirectional pipelines … but with the use of FIFO pipes (sorry, not under Cygwin) you can construct something that will do the job.

From http://www.ists.dartmouth.edu/library/classroom/nc-intro.v0.80.php :-

mknod backpipe p
nc -l -p 80 0<backpipe | tee -a inflow | nc localhost 81 | tee -a outflow 1>backpipe

You only have to do the mknod once, in order to create a pipe entity on the filesystem. Have a look in the files inflow and outflow to see the stored results of your conversation.