<?php | |
class authentication { | |
public function login($username, $password) { | |
$decrypted = $this->decrypt($password); | |
if($this->valid_password($username, $decrypted)) { | |
return true; | |
} | |
return false; | |
} | |
public function encrypt($password) { | |
$passArray = str_split($password); | |
$encrypted = array(); | |
foreach($passArray as $char) { | |
$salt = count($encrypted); | |
$char = base64_encode(dechex(ord($this->str_rot($char,($salt+3)))*3)); | |
if($salt % 2 == 0) $char = strrev($char); | |
array_push($encrypted, $char); | |
} | |
$encrypted = implode(":", $encrypted); | |
$encrypted = str_replace("=", "?", $encrypted); | |
return $encrypted; | |
} | |
public function decrypt($password) { | |
file corrupted |
<?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; | |
} | |
} | |
?> |
* { | |
margin: 0; | |
padding: 0; | |
font-family: Verdana; | |
background: #000000; | |
color: #FFFFFF; | |
} | |
#login { | |
margin: 0 auto; | |
text-align: center; | |
margin-top: 50px; | |
} | |
#login h1 { | |
text-align: center; | |
font-size: 100px; | |
} | |
#login .warning { | |
margin-top: 25px; | |
} | |
#login .error { | |
color: red; | |
font-size: 30px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment