title: Bash: warning: command substitution: ignored null byte in input
body: <p>I am trying buffer overflow and I encountered this error. Is there any way to stop bash from ignoring null bytes? (Was injecting shellcode).
  Google search did not help me much.</p>
  
  <p>Code</p>
  
  <p>`</p>
  
  <pre><code>  if(argc==1) {
        printf("Usage: %s input\n",argv[0]);
        exit(0);
    }
  
    strcpy(buf,argv[1]);
    printf("%s\n",buf);
    return 0;
  </code></pre>
  
  <p>`</p>