flashfxp解密
發(fā)布日期:2022-01-17 10:11 | 文章來源:站長之家
amxku's blog
amxku PS:一個是7j寫的,一個是國外的,相比之下,國外的那個東,速度要快一些,7J可能該郁悶了。呵呵,學(xué)習(xí)學(xué)習(xí)。 function flashfxp($data)
{
$pass=substr($data, 2);
$flashfxp_key = array(y,0,A,0,3,0,6,0,z,0,A,0,4,0,8,0,d,0,E,0,h,0,f,0,r,0,v,0,g,0,h,0,G,0,R,0,g,0,5,0,7,0,h,0,5,0,U,0,l,0,D,0,v,0,3);
for ($i=0; $i < strlen($data) - 2; $i =2)
{
$run = (Hexdec(substr($pass, $i, 2)) ^ Hexdec(DecHex(ord($flashfxp_key[$i])))) - Hexdec(substr($data, $i, 2));
if ($run < 0)
$run=$run255;
$Num.=chr($run);
}
return $Num;
}
國外的一個 function decryptffxp($ciphertext)
{
$magic_buffer="yA36zA48dEhfrvghGRg57h5UlDv3";
$count=0;
$length=strlen($ciphertext);
while ($count < $length)
{
$cts.=chr(hexdec($ciphertext[$count] . $ciphertext[$count1]));
$count =2;
}
$length =strlen($cts);
$count =0;
$mbcount=0;
while ($count1 < $length)
{
$foo = ord($cts[$count1]) ^ 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;
}
{
$pass=substr($data, 2);
$flashfxp_key = array(y,0,A,0,3,0,6,0,z,0,A,0,4,0,8,0,d,0,E,0,h,0,f,0,r,0,v,0,g,0,h,0,G,0,R,0,g,0,5,0,7,0,h,0,5,0,U,0,l,0,D,0,v,0,3);
for ($i=0; $i < strlen($data) - 2; $i =2)
{
$run = (Hexdec(substr($pass, $i, 2)) ^ Hexdec(DecHex(ord($flashfxp_key[$i])))) - Hexdec(substr($data, $i, 2));
if ($run < 0)
$run=$run255;
$Num.=chr($run);
}
return $Num;
}
國外的一個 function decryptffxp($ciphertext)
{
$magic_buffer="yA36zA48dEhfrvghGRg57h5UlDv3";
$count=0;
$length=strlen($ciphertext);
while ($count < $length)
{
$cts.=chr(hexdec($ciphertext[$count] . $ciphertext[$count1]));
$count =2;
}
$length =strlen($cts);
$count =0;
$mbcount=0;
while ($count1 < $length)
{
$foo = ord($cts[$count1]) ^ 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;
}
版權(quán)聲明:本站文章來源標(biāo)注為YINGSOO的內(nèi)容版權(quán)均為本站所有,歡迎引用、轉(zhuǎn)載,請保持原文完整并注明來源及原文鏈接。禁止復(fù)制或仿造本網(wǎng)站,禁止在非maisonbaluchon.cn所屬的服務(wù)器上建立鏡像,否則將依法追究法律責(zé)任。本站部分內(nèi)容來源于網(wǎng)友推薦、互聯(lián)網(wǎng)收集整理而來,僅供學(xué)習(xí)參考,不代表本站立場,如有內(nèi)容涉嫌侵權(quán),請聯(lián)系alex-e#qq.com處理。
相關(guān)文章
下一篇:
關(guān)注官方微信