Hello,
I can't get exec() working with a binary, but it works with whoami, the binary also outputs on a plain linux machine. I have error reporting E_ALL enabled but i can't find anything usefull in the logs. What can i do?
Thanks for helping.
See pic for the output of the script, whoami works but swetest gives nothing. I know it works, it is in use elsewhere on servers.
<?php
if (ini_get('safe_mode'))
echo 'safe mode is on<br>';
else
echo 'safe mode is off<br>';
if (function_exists('exec'))
echo "exec is enabled<br>";
else
echo "exec is disabled<br>";
echo exec('whoami');
echo exec('swetest -h');
?>