title: How to pass \x00 as argument to program?
body: <p>I have a small program where I wish to pass shellcode as argument. In the shellcode, there is a necessity to pass \x00. I tried the following command:</p>
  
  <pre><code>./program `python -c 'print "\x01\x00\x00\x00\x9c\xd8\xff\xbf"'`
  </code></pre>
  
  <p>But the \x00 doesn't get registered at all! The arguments passed to the program are "\x01\x9c\xff\xbf".</p>
  
  <p>I don't think it's a problem with python, but rather with the shell which passes the argument. I am using the bash shell.</p>
  
  <p>Now, how do I force the shell to pass the argument '\x00'?</p>
  
  <p>Thanks and Regards,<br>
  Hrishikesh Murali</p>