Code: Select all
<?php
echo exec("whoami");
?>can i pass the root username and password and run this? I think its an issue with permissions.
Moderator: General Moderators
Code: Select all
<?php
echo exec("whoami");
?>Code: Select all
<?php
error_reporting(E_ALL);
ini_set('display_errors', true);
echo 'whoami:', exec('whoami 2>&1');
?>+