* 사업 등 관련 문의: T) 02-322-4688, F) 02-322-4646, E) info@wikisecurity.net
Netcat 사용 예
* telnet 접속
server1# nc -t server2-ip 23
* 서버간 채팅
server1# nc -l -p 9999 server2# nc server1-ip 9999
* IPv6로 접속 (-6: IPv6, -4: IPv4)
server1# nc -6 -l 9999 server2#nc -6 server1-ip 9999
* copying a file
server1# nc -l -p 9999 > file-name server2# cat file-name | nc -w 3 server1-ip 9999
* Hard Drives & partition 복제
server1# nc -l -p 9999 | dd of=/dev/sda server2# dd if=/dev/sda | nc server1-ip 9999
* port scanning
server1# nc -v -w 1 server2-ip -z 1-1000 <= Port number
* port range에 “quit”문자를 보내서 응답(버전정보) 확인
server1# echo "quit" | nc -vv -w 5 server2-ip 20-40 <= port No.
* 간단한 web-page(somepage.html) 서비스
server# while true; do nc -l -p 80 -q 1 < somepage.html; done