break; } } echo json_encode($results); die; } if (isset($_GET['type']) && $_GET['type'] == "genak") { if (!isset($_GET['name'])) { die("404/Missing filename"); } if (!isset($_GET['key']) && $_GET['key'] != "QT5LGz7ktGFVZpfFArVHCpEvDcC3qrUZrf0kP") { die("404/Missing key"); } $s = time() . "|" . $_GET['name']; // <<<<<<<<<<<<<< echo urlencode(XOREncrypt($s)); } if (isset($_GET['type']) && $_GET['type'] == "showak") { if (!isset($_GET['ak'])) { die("404/Missing ak"); } echo "ak contents: " . XORDecrypt($_GET['ak']); } if (isset($_GET['type']) && $_GET['type'] == "short") { if (!isset($_GET['code'])) { die("404/Missing code"); } if ($_GET['code'] == "favicon") { die; } if (strpos($_GET['code'], '/')) {
#!/usr/bin/php <?php //header('Content-Type: text/plain; charset=utf-8'); $HASH_SALT = "OH NO! The fight's out,I'ma 'bout to punch yo...lights out,Get the F**K back, guard ya grill,There's somethin' wrong, we can't stay still,I've been drankin' and bustin' two,and I been thankin' of bustin' you,Upside ya motherfuckin' forehead"; $XOR_KEY = "Causin' confusion, Disturbin Tha Peace,It's not an illusion, we runnin the streets,So bye-bye to all you groupies and golddiggers,Is there a bumper on your ass? NO N***A!,I'm doin' a hundred on the highway,So if you do the speed limit, get the F**K outta my way,I'm D.U.I., hardly ever caught sober,and you about to get ran the F**K over"; $message = $_ENV['WEBAUTH_LDAP_DISPLAYNAME'] . '|' . $_ENV['WEBAUTH_LDAP_MAIL'] . '|' . $_ENV['WEBAUTH_LDAPAUTHRULE'] . '|' . time(); $messageSign = md5($message . $HASH_SALT) . $message; $encrypt = XOREncrypt($messageSign, $XOR_KEY); if (isset($_GET['t'])) { $tag = 't=' . $_GET['t'] . '&'; } else { $tag = ''; } if (isset($_GET['dev'])) { header("Location: http://stanfordassassins.com/dev/login.php?" . $tag . "r={$encrypt}"); } else { header("Location: http://stanfordassassins.com/login.php?" . $tag . "r={$encrypt}"); } exit(0); /** * XOR encrypts a given string with a given key phrase * @param string $InputString Input string * @param string $KeyPhrase Key phrase * @return string Encrypted string */ function XOREncryption($InputString, $KeyPhrase) { $KeyPhraseLength = strlen($KeyPhrase); // Loop trough input string for ($i = 0; $i < strlen($InputString); $i++) { // Get key phrase character position