About NetCat
September 11th, 2008
About NetCat
NetCat a great network tool checkout this examples:
Create a Small WebServer:
while true; do nc -l -p 80 -q 1 < error.html; done
Transfer Files:
nc -lp $PORT > $FILE
cat $FILE | nc -w 1 $HOST $PORT
Chat Server:
nc -lp $PORT
nc $HOST $PORT
Spoof Headers:
echo -e "GET / HTTP/1.1\n\n" | nc -v $HOST 80
Backup System:
nc -lp $HOST > backup.tar.gz
tar cf - $DIR | gzip | nc -w 1 $HOST $PORT
Remote Shell:
nc -lp $PORT -e $CMD
nc $HOST $PORT
Clonning Hard Drive:
nc -l -p $PORT | dd of=/dev/sda
dd if=/dev/sda | nc $HOST $PORT
Port Scanner:
nc -vz $HOST 21-80

Recent Comments