- hash: documentation ( source)
- error_reporting: documentation ( source)
- md5: documentation ( source)
<?php
error_reporting(0);
REQUIRE_ONCE 'flag.php';
$hash_0 = $_GET[md5($_SERVER['REMOTE_ADDR'])];
$hash_1 = $_GET[md5($_SERVER['HTTP_USER_AGENT'])];
if ($hash_0 == $hash_1)
if (md5($hash_0) !== hash('md5', $hash_1))
if (hash('sha512', $hash_0, true) == hash('sha512', $hash_1, true))
echo 'You got it! Here is your flag:' . $FLAG;
return;