<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Bash on Nico Maas</title>
        <link>https://www.nico-maas.de/tags/bash/</link>
        <description>Recent content in Bash on Nico Maas</description>
        <generator>Hugo -- gohugo.io</generator>
        <language>en-us</language>
        <lastBuildDate>Fri, 03 Apr 2020 07:35:12 +0000</lastBuildDate><atom:link href="https://www.nico-maas.de/tags/bash/index.xml" rel="self" type="application/rss+xml" /><item>
            <title>Bash for sending and receiving raw IP packets</title>
            <link>https://www.nico-maas.de/posts/2020-04-03-bash-for-sending-and-receiving-raw-ip-packets/</link>
            <pubDate>Fri, 03 Apr 2020 07:35:12 +0000</pubDate>
            <guid>https://www.nico-maas.de/posts/2020-04-03-bash-for-sending-and-receiving-raw-ip-packets/</guid>
            <description>&lt;p&gt;I stumbled across this feature during my bachelor studies:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;echo &amp;#34;Hello World&amp;#34; &amp;gt; /dev/tcp/127.0.0.1/5000&#xD;&#xA;echo &amp;#34;Hello World&amp;#34; &amp;gt; /dev/udp/127.0.0.1/5000&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;You need to be root (obviously) and its supported in bash environment - but not on all systems. You can also cat on the ports and use dns adresses. Its neat to just get a byte out :). And if you need something more sophisicated, be sure to use the good old netcat (&lt;code&gt;nc&lt;/code&gt;).&lt;/p&gt;</description>
        </item></channel>
</rss>
