title: Hex to TCP Port - BASH
body: <p>so i have been working a lot with sending hex to a tcp port. Now, my next task is to do the following , BUT this is a different way of hex? </p>
  
  <p>I guess i need some help because the documentation anywhere is really bad.</p>
  
  <p>So far the hex i am told (the command) is like so</p>
  
  <pre><code> 01 53 20 00 41 04 4F
  </code></pre>
  
  <p>so normally, i would do the following in linux</p>
  
  <pre><code>exec 3&lt;&gt;/dev/tcp/IP OF SERVER/PORT TO SERVER
  </code></pre>
  
  <p>then </p>
  
  <pre><code>echo -ne '01 53 20 00 41 04 4F' &gt;&amp;3
  </code></pre>
  
  <p>then </p>
  
  <pre><code>echo &lt;&amp;3
  </code></pre>
  
  <p>but i get no reply back just blank. </p>
  
  <p>Sorry i forgot to mention,</p>
  
  <p>what i am use to doing is </p>
  
  <p>echo -ne 54686973776f726b7366696e65 | perl -pe 's/([0-9a-f]{2})/chr hex $1/gie' >&amp;3</p>
  
  <p>and then 
  echo &lt;&amp;3
  and ill get a reply. </p>
  
  <p>So my question is, what is the diff between 01 53 20 etc .. </p>
  
  <p>I am a bit confused. </p>