title: How can I create a file with null bytes in the filename?
body: <p>For a security test, I need to pass a file that contains null characters in its content and its filename. </p>
  
  <p>For the body content, it's easy to use <code>printf</code>:</p>
  
  <pre><code>$ printf "Hello\00, Null!" &gt; containsnull.txt
  $ xxd contains.null
  0000000: 4865 6c6c 6f00 2c20 4e75 6c6c 21         Hello., Null!
  </code></pre>
  
  <p>But how can I create a file with the null bytes in the name?</p>
  
  <p>Note: A solution in <code>bash</code>, <code>python</code> or <code>nodejs</code> is preferred if possible</p>