国外FlashFxp解密代码

    [阴 September 20, 2007 10:25 | by ]
function decryptffxp($ciphertext)
{
$magic_buffer="yA36zA48dEhfrvghGRg57h5UlDv3";
$count =0;
$length =strlen($ciphertext);

while ($count < $length)
{
$cts.=chr(hexdec($ciphertext[$count] . $ciphertext[$count + 1]));
$count+=2;
}

$length =strlen($cts);
$count =0;
$mbcount=0;

while ($count + 1 < $length)
{
$foo = ord($cts[$count + 1]) ^ ord($magic_buffer[$mbcount]);

if ($foo - ord($cts[$count]) < 0)
{
$plaintext.=chr($foo - ord($cts[$count]) + 255);
}
else
{
$plaintext.=chr($foo - ord($cts[$count]));
}

$count++;
$mbcount++;

if ($mbcount == 28)
{
$mbcount=0;
}
}

return $plaintext;
}
Tags: , ,
Bug&Exp | Comments(0) | Trackbacks(0) | Reads(8065)
Add a comment
Emots
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
Enable HTML
Enable UBB
Enable Emots
Hidden
Nickname   Password   Optional
Site URI   Email   [Register]
               

Security code Case insensitive