Question

I am currently writing a php module for our billing software that will allow us to easily create/terminate/etc. databases for our customers as a free service. The module template supports the creation of quick login buttons and the example code uses an HTML form to post the data.

Can PHPMyAdmin be logged into in this manner? Haven't found much from Google searches yet pertaining to this.

function module_AdminLink($params)
{
    $code = '<form action=\"http://'.$params["serverip"].'/controlpanel" method="post" target="_blank">
<input type="hidden" name="user" value="'.$params["serverusername"].'" />
<input type="hidden" name="pass" value="'.$params["serverpassword"].'" />
<input type="submit" value="PHPMyAdmin" />
</form>';
    return $code;
}
Was it helpful?

Solution

i can't comment yet, but phpmyadmin login form needs a session token... you may download the software and search in php code how to create that token

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top