Anti-nuisance lawsuit warning: The purpose of these notes is to remind me, Zoegond, of stuff or to help me work stuff out. They may contain mistakes.

Quick

  • ($a, $b....) = unpack("A2A7...", $packed)
  • push( array, list )

Thursday, April 5, 2012

netcat

The difference between 'listen' and 'listen harder' is that nc -l will exit once any connection that has been made to it closes. nc -L will continue to listen after that, accepting other connections.

if you do

nc server port < file

the sending nc won't close after the file has been sent. It will only close if you give it a timeout

nc -w 3 server port < file

Followers

Blog Archive