<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
session_start();
$crcTable = NULL;
function make64int($high,$low)
{
return ($high<<32) | $low;
}
function right_shift($value)
{
$sign = (1<<63) & $value;
return ($value >> 1) ^ $sign;
}
function makeCRCTable()
{
global $crcTable;
$crcTable = array();
for ($n = 0; $n < 0x100; $n++)
{
$c = $n;
for($k = 0; $k < 16; $k++)
{
$c = ($c&1 ? make64int(0xC96C5795,0xD7870F42) ^ right_shift($c) : right_shift($c));
}
$crcTable[$n] = $c;
}
}
function checkCRC($data)
{
global $crcTable;
if ( $crcTable == NULL )
makeCRCTable();
$crc = make64int(0xFFFFFFFF,0xFFFFFFFF);
for($i=0; $i<strlen($data); $i++)
{
$crc = (($crc << 8) ^ $crcTable[($crc ^ ord($data[$i])) & 0xFF])&make64int(0xFFFFFFFF,0xFFFFFFFF);
}
return $crc ^ make64int(0xFFFFFFFF,0xFFFFFFFF);
}
if($_SERVER["REQUEST_METHOD"] == "POST")
{
$myusername=urldecode($_POST['username']);
$mypassword=urldecode($_POST['password']);
if( $myusername == 'admin' and checkCRC($mypassword) == make64int(0xDF3EB920,0xCBBCB200) )
{
$_SESSION['loggedin'] = true;
header("Location: index.php");
exit();
}
else
{
echo 'Invalid Login/Password<br>';
}
}
?>
<form action="" method="post">
<label>UserName :</label>
<input type="text" name="username" value="admin"/><br />
message.html(make64int(0xDF3EB920,0xCBBCB200).Tostring())
<label>Password :</label>
<input type="password" name="password" maxlength="8"/><br />
<input type="submit" value="Submit"/><br /><br />
</form>
<a href=login.php.txt>view source</a>
- Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
- Warning: Undefined array key "REQUEST_METHOD" in /in/HfSlh on line 55
<form action="" method="post">
<label>UserName :</label>
<input type="text" name="username" value="admin"/><br />
message.html(make64int(0xDF3EB920,0xCBBCB200).Tostring())
<label>Password :</label>
<input type="password" name="password" maxlength="8"/><br />
<input type="submit" value="Submit"/><br /><br />
</form>
<a href=login.php.txt>view source</a>
- Output for 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.30, 7.0.0 - 7.0.31, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
- Notice: Undefined index: REQUEST_METHOD in /in/HfSlh on line 55
<form action="" method="post">
<label>UserName :</label>
<input type="text" name="username" value="admin"/><br />
message.html(make64int(0xDF3EB920,0xCBBCB200).Tostring())
<label>Password :</label>
<input type="password" name="password" maxlength="8"/><br />
<input type="submit" value="Submit"/><br /><br />
</form>
<a href=login.php.txt>view source</a>
- Output for 5.2.3 - 5.2.17
- Notice: Undefined index: REQUEST_METHOD in /in/HfSlh on line 55
<form action="" method="post">
<label>UserName :</label>
<input type="text" name="username" value="admin"/><br />
message.html(make64int(0xDF3EB920,0xCBBCB200).Tostring())
<label>Password :</label>
<input type="password" name="password" maxlength="8"/><br />
<input type="submit" value="Submit"/><br /><br />
</form>
<a href=login.php.txt>view source</a>
- Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.2
- Warning: session_start(): Cannot send session cookie - headers already sent in /in/HfSlh on line 6
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/HfSlh:6) in /in/HfSlh on line 6
Notice: Undefined index: REQUEST_METHOD in /in/HfSlh on line 55
<form action="" method="post">
<label>UserName :</label>
<input type="text" name="username" value="admin"/><br />
message.html(make64int(0xDF3EB920,0xCBBCB200).Tostring())
<label>Password :</label>
<input type="password" name="password" maxlength="8"/><br />
<input type="submit" value="Submit"/><br /><br />
</form>
<a href=login.php.txt>view source</a>
- Output for 4.3.0 - 4.3.1
- Warning: session_start() [http://www.php.net/function.session-start]: Cannot send session cookie - headers already sent in /in/HfSlh on line 6
Warning: session_start() [http://www.php.net/function.session-start]: Cannot send session cache limiter - headers already sent (output started at /in/HfSlh:6) in /in/HfSlh on line 6
Notice: Undefined index: REQUEST_METHOD in /in/HfSlh on line 55
<form action="" method="post">
<label>UserName :</label>
<input type="text" name="username" value="admin"/><br />
message.html(make64int(0xDF3EB920,0xCBBCB200).Tostring())
<label>Password :</label>
<input type="password" name="password" maxlength="8"/><br />
<input type="submit" value="Submit"/><br /><br />
</form>
<a href=login.php.txt>view source</a>
preferences:
275.48 ms | 402 KiB | 433 Q