PHP WhoAmI; whoami www-data using exec()

PHP scripts typically runs under the www-data user. Verify this using the following code:

$command = 'whoami';
echo exec($command) . "\n";
This post is available on GitHub.
Posted .

Comments

Leave a Reply