Skip to content

Instantly share code, notes, and snippets.

@hiendnguyen
Created March 9, 2017 05:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hiendnguyen/84d736f33947e0d731d24b95342a5bbc to your computer and use it in GitHub Desktop.
Save hiendnguyen/84d736f33947e0d731d24b95342a5bbc to your computer and use it in GitHub Desktop.
Running agent
<?php
// outputs the username that owns the running php/httpd process
// (on a system with the "whoami" executable in the path)
echo exec('whoami');
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment