title: Use buffer overflow to print specific text
body: <pre><code>#include&lt;stdio.h&gt;
  #include&lt;string.h&gt;
  #include&lt;stdlib.h&gt;
  
  int main(int argc, char *argv[]){
     char a[5];
     char b[10];
     strcpy(a,"nop");
     gets(b);
     printf("Hello there %s. Value in a is %s.\n",b,a);
     exit(0);
  }
  </code></pre>
  
  <p>I need to make the program print <code>Hello there Leslie. Value in a is Correct.</code></p>
  
  <p>I try to execute arbitrary input into the program, but I can't seem to make it ignore some input. For example if I run the program and enter:</p>
  
  <pre><code>Leslie\\\\Correct
  </code></pre>
  
  <p>The program will output <code>Hello there Leslie\\\\Correct. Value in a is Correct.</code> How can I remove the <code>\\\\Correct</code> from the first part using buffer overflow?</p>