Name: faggot !Ep8pui8Vw2 2007-08-28 21:19 ID:8YbuJbma
Can you hack it /PROG/?
<?php
function tripcode($trip)
{
$cap = $trip;
$cap = strtr($cap,"&", "&");
$cap = strtr($cap,",", ",");
$salt = substr($cap."H.",1,2);
$salt = ereg_replace("[^\.-z]",".",$salt);
$salt = strtr($salt,":;<=>?@[\\]^_`","ABCDEFGabcdef");
return substr(crypt($cap,$salt),-10)."";
}
srand();
while(1)
{
$string = tripcode(rand()); // We need a 'random' string, and we need it to be a valid trip
if(tripcode($string) == $string)
{
echo "Quine found! - $string\n";
}
}
?>