Wednesday, August 20, 2014

Netcat snippets

A host of useful netcat commands can be found at some guys blog

What I was actually looking for was a way to forward a port from 80 to 22 on a local machine, this can be done according to Jonas Wagner's blog with:

nc -l -p 80 -c "sudo nc localhost 22"


Although on my gnu netcat, -c needs to be -e:

nc -l -p 80 -e "sudo nc localhost 22"

No comments:

Post a Comment