<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Netcat on Ricky</title><link>https://linzeyan.github.io/categories/netcat/</link><description>Recent content in Netcat on Ricky</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Fri, 09 Nov 2018 00:17:47 +0800</lastBuildDate><atom:link href="https://linzeyan.github.io/categories/netcat/index.xml" rel="self" type="application/rss+xml"/><item><title>Netcat (Linux nc) Practical Examples for Network Admins</title><link>https://linzeyan.github.io/posts/2018/20181109-linux-utility-netcat-examples/</link><pubDate>Fri, 09 Nov 2018 00:17:47 +0800</pubDate><guid>https://linzeyan.github.io/posts/2018/20181109-linux-utility-netcat-examples/</guid><description>&lt;ul>
&lt;li>&lt;a href="https://blog.gtwang.org/linux/linux-utility-netcat-examples/" target="_blank" rel="noopener">Netcat (Linux nc) Practical Examples for Network Admins&lt;/a>&lt;/li>
&lt;/ul>
&lt;h4 id="send-a-test-udp-packet-to-a-remote-server">Send a test UDP packet to a remote server&lt;/h4>
&lt;p>This command sends a UDP test packet to the specified host and port. The &lt;code>-w1&lt;/code> option sets the timeout to 1 second.&lt;/p>
&lt;p>&lt;code>echo -n &amp;quot;foo&amp;quot; | nc -u -w1 192.168.1.8 5000&lt;/code>&lt;/p>
&lt;h4 id="open-a-udp-port-to-receive-data">Open a UDP port to receive data&lt;/h4>
&lt;p>&lt;code>nc -lu localhost 5000&lt;/code>&lt;/p>
&lt;h4 id="port-scanning-on-a-remote-host">Port scanning on a remote host&lt;/h4>
&lt;p>This command scans TCP ports in the ranges 1-1000 and 2000-3000 on the specified host to see which ports are open.&lt;/p></description></item></channel></rss>