- substr: documentation ( source)
- base64_decode: documentation ( source)
- sha1: documentation ( source)
- unserialize: documentation ( source)
- pack: documentation ( source)
<?php
function string_cpt($String, $Password)
{
$Salt = 'dBQYH';
$StrLen = strlen($String);
$Seq = $Password;
$Gamma = '';
while (strlen($Gamma) < $StrLen) {
$Seq = pack('H*', sha1($Gamma . $Seq . $Salt));
$Gamma .= substr($Seq, 0, 8);
}
return $String ^ $Gamma;
}
$cfg = 'B1/HhLYpkkep/3HxrJKaJVM5u/F2y8fF5lsQBM10QIyInDaAOLL4jNzQhyU8lU7LwC7H5veuPoMUsv5jRAMRiTLEn63lNSjtwjTBwb0tNBDHyzJP6R9o/XJukfx70KPhLgofPErYe7XgUO0rtp9VNxnDgvTH+Qb85oyPu3m9czJAlqLEnQwwDlhJaAmXLC9NtYLkwoUhpM2bscIEdPOCYloot8cunEBBZmtFcbtporWLuHhzfPb5XimzGzwL6emNaqRqjQ==';
$key = 'rK4PhY';
$c = unserialize(string_cpt(base64_decode($cfg), $key));
foreach($c as $child) {
echo $child . "\n";
}
print $c['url'];
print $c['key'];
print $c['id'];
?>