Linux‎ > ‎

Netcat

Netcat Usage to listen on port 1234 and bind bash when there is a connection

nc -l -p 1234 -e /bin/bash &

to connect

nc <ip> 1234

to recieve the file

$ nc -v -w 30 -p 5600 -l > filename.back

to send the file

$ nc -v -w 2 10.0.1.1 5600 < filename
Comments