snipt

Ctrl+h for KB shortcuts

Bash

infinite netcat

while true; do echo 'hello world' | netcat -l 80; done
https://snipt.net/embed/357df2b5856d7315e30f1650bf9b6c5d/
/raw/357df2b5856d7315e30f1650bf9b6c5d/
357df2b5856d7315e30f1650bf9b6c5d
bash
Bash
1
2019-06-16T02:29:13
True
False
False
Sep 23, 2013 at 05:07 PM
/api/public/snipt/82705/
infinite-netcat
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="k">while</span> true<span class="p">;</span> <span class="k">do</span> <span class="nb">echo</span> <span class="s1">&#39;hello world&#39;</span> <span class="p">|</span> netcat -l 80<span class="p">;</span> <span class="k">done</span> </span></pre></div> </td></tr></table>
bash, netcat