title: How to conduct buffer overflow in PHP/Python?
body: <p>Here is an example in c:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  
  void bad() {
      printf("Oh shit really bad~!\r\n");
  }
  
  void foo() {
      char overme[4] = "WOW";
      *(int*)(overme+8) = (int)bad;
  }
  
  int main() {
     foo();
  }
  </code></pre>