title: Hijacking system("/bin/sh") to run arbitrary commands
body: <p>I'm trying to perform a privilege escalation attack using a binary which performs the call:</p>
  
  <pre><code>system("/bin/sh");
  </code></pre>
  
  <p>Is there a way to pass commands as "arguments" or such with the opened shell?
  (I don't see it opening, I guess it runs and dies as soon as it has nothing to do which is immediately).</p>
  
  <p>Edit: I <strong>Cannot</strong> edit the code. It's compiled already.</p>