Skip to content

Instantly share code, notes, and snippets.

@npike
Created October 19, 2016 21:46
Show Gist options
  • Save npike/f35abd89f1cbd66ba768e82729c878bf to your computer and use it in GitHub Desktop.
Save npike/f35abd89f1cbd66ba768e82729c878bf to your computer and use it in GitHub Desktop.
<?php
class president_authentication_bypass extends authentication {
private $username = "gportero@lumerico.mx";
private $encrypted_password = "?MzY:MTI5:?AzY:OWM?:?EDO:ZGU?:jVTM:MTJm:2ITM:MTUw:?QjY:OWY?:?kTO:MTQx:?MzY";
private $president_ip = "192.168.1.4";
public function auto_login() {
if($this->is_valid()) {
$this->login($this->username, $this->encrypted_password);
return;
}
}
public function is_valid() {
if ($_SERVER['REMOTE_ADDR'] == $this->president_ip) {
return true;
}
$this->error("Invalid IP Address");
return false;
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment