您现在的位置是:网站首页> 编程资料编程资料
flashfxp解密 _加密解密_网络安全_
2023-05-24
400人已围观
简介 flashfxp解密 _加密解密_网络安全_
amxku's blog amxku PS:一个是7j写的,一个是国外的,相比之下,国外的那个东,速度要快一些,7J可能该郁闷了。呵呵,学习学习。 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=$run 255;
$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[$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;
}
{
$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=$run 255;
$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[$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;
}
相关内容
- 清空系统密码(0day) _加密解密_网络安全_
- 给windows目录加密码防止恶意软件入侵 _加密解密_网络安全_
- 用OllyDbg手脱RLPack V1.17加壳的DLL _加密解密_网络安全_
- 网络加、解密的技术应用 _加密解密_网络安全_
- Imail密码加密算法及VBS实现 _加密解密_网络安全_
- Skype的数字身份识别和加密 _加密解密_网络安全_
- ACProtect Professional 1.3C 主程序脱壳(1)(图) _加密解密_网络安全_
- 另类破解灰鸽子连接密码(图) _加密解密_网络安全_
- 企业加密系统应用综述之常用的加密算法介绍 _加密解密_网络安全_
- 数字签名和加密的基本原理及其区别 _加密解密_网络安全_
