title: Is it possible to overwrite %eax using buffer overflow?
body: <p>I know that a program stack looks somewhat like this (from high to low):</p>
  
  <pre><code>   EIP   |   EBP   |   local variables
  </code></pre>
  
  <p>But where could I find <code>%eax</code>, and the other general registers? Is it possible to overwrite them using a buffer overflow?</p>
  
  <p>Update: In the end, I did not even have to overwrite <code>%eax</code>, because it turned out that the program pointed <code>%eax</code> to the user input at some point.</p>