Skip to content

Instantly share code, notes, and snippets.

@mifas
Last active December 1, 2019 02:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mifas/7f8e297d351267b9cd55ba4a6c4859d5 to your computer and use it in GitHub Desktop.
Save mifas/7f8e297d351267b9cd55ba4a6c4859d5 to your computer and use it in GitHub Desktop.
adminer auto login
<?php
$_GET["username"] = "";
//$_GET["db"] = "";
function adminer_object() {
class AdminerAutoLogin extends Adminer {
function credentials() {
return array("127.0.0.1", "root", "root");
}
function login($login, $password) {
return true;
}
}
return new AdminerAutoLogin;
}
require_once("adminer.php");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment