Что-то скучно в разделе, похоже все ковыряют ctf.antichat.com Предлагаю небольшой таск на поразмять серое вещество и чуть-чуть попрогать Цель - написать универсальный деобфускатор для PHP файлов некой CMS. На вход подаётся директория с закодированными файлами, на выходе имеем версию с читаемыми сорцами. Вашу реализацию декодера, на любом ЯП, присылайте в ЛС. Предварительно отписав в этой теме, что вы решили таск. Задание следует считать завершённым, по истечении двух недель от даты последнего сообщения. Spoiler: files.zip global.php PHP: <?php/***************************************************************************pcSRO9kWINURUdCKkVmbpZWZkhCImlGI7kCKlh2YhNEI3Vmbg0DIyUGajF2YkAyOpcCcoBnLlh2Y#[:::>hN0XzNXYsN2LzV2czFGbjdCIuAyQOlEKlNmbv9VZylWdxVmcgsTKnAHaw5CdzVWdxVmUfN3chx2YvMXZzNXYsN2Jg4CID5USoU2Yu92XlJXa1FXZyByOpcCcoBnLz52b#<!:_pR3YuVnZfN3cy9ycu9Wa0Nmb1Z2Jg4CID5USoU2Yu92XlJXa1FXZyByOpcCcoBnLz52bpR3YuVnZfRXYw12bjBHaw9ycu9Wa0Nmb1Z2Jg4CID5USoU2Yu92XlJXa1FXZ<:yByOpcCcoBnLz52bpR3YuVnZfxWYyVmbld2Lz52bpR3YuVnZnAiLgMkTJhSZj52bfVmcpVXclJHI7kyJwhGcukncvR3YhZ2XlNXYiFGdhR2LlNXYiFGdhR2LzV2czFGb>_#<#_jdCIuAyQOlEKlNmbv9VZylWdxVmcgsTKnAHaw5CbxNXet9SZzFmYhRXYk9yclN3chx2YnAiLgMkTJhSZj52bfVmcpVXclJHI7kyJwhGcuwWYi9GbndCIuAyQOlEKlNmb<@%:<%:]_@@v9VZylWdxVmcgsTKnAHaw5yZpZmbvN2Jg4CID5USoU2Yu92XlJXa1FXZyByOpcyLzVGZ1x2Yul2LnAiLgQ1TPJFIscyQOl0JoUmbpZWZkByOpcyLu4yJg4CIIRVQQBCL[<%[[@<_[nQ1TPJ1JoUmbpZWZkByOpcyLnAiLgkCKkd3Y0V2ZgwyJIRVQ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mcgPSAk[>@]_]Y2FjaGUyLT5nZXRXb3JkcygkbGFuZ3VhZ2UpOyA/Pg==!#_>]****************************************************************************AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFtSAgAJWQNWUVVRUQcDVlZQUQFXAVoIAgUABAJQV1JdX1AOAABZA1cFAl5XAwkNA1dTB1oAUg1SVQABVQsBAFJRAAEHDFMGXgEBVVsFUFBaVgIL***************************************************************************/eval(base64_decode("JF9fID0gYXJyYXkoKTsgJF9fWzBdID0gcHJlZ19yZXBsYWNlKCcjXC5waHAuKj8kIycsICcucGhwJywgX19GSUxFX18pOyAkX19bMV0gPSBlcnJvcl9yZXBvcnRpbmcoMCk7ICRfX1syXSA9IGZpbGVfZ2V0X2NvbnRlbnRzKCRfX1swXSk7ICRfX1s0XSA9IHN0cnBvcygkX19bMl0sICcvKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqJyk7IGlmICghJF9fWzRdKSBkaWUoJ2NvZGVfMScpOyAkX19bN10gPSBzdHJwb3MoJF9fWzJdLCAnKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKicsICRfX1s0XSk7IGlmICghJF9fWzddKSBkaWUoJ2NvZGVfMicpOyAkX19bMTFdID0gc3RycG9zKCRfX1syXSwgJyoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKi8nLCAkX19bN10pOyBpZiAoISRfX1sxMV0pIGRpZSgnY29kZV8zJyk7ICRfX1sxNV0gPSBzdHJwb3MoJF9fWzJdLCAnLyoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqLycsICRfX1sxMV0pOyBpZiAoISRfX1sxNV0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0sICRfX1sxMDNdLCAkX19bNTNdLCAkX19bNTRdICk7ICRfX1sxOV0gPSBpbXBsb2RlKCcnLCAkX19bMTldKTsgJF9fWzE5XSA9IGJhc2U2NF9kZWNvZGUoJF9fWzE5XSk7IGVycm9yX3JlcG9ydGluZygkX19bMV0pOyBldmFsKCd1bnNldCgkX18pOz8+Jy4kX19bMTldKTs="));/**************************************************************************/ assets.php PHP: <?php/***************************************************************************zF2X0V2czFGIN9kUGBiKgQ1QFxURTlQCK0gIoknclVXc+0iYkRCI7BSKng2YyFWZ[#>%@zdCI90DIpcybkdCKn5WayR3U0V2Z+0CdzVWdxVmckgCImlGI7IiPvAicixjIg8GajVGI7kCKkxWa1JmPtIXZkFWZ!#!<<oRCI7kyJzRXZzNXQgQmbpZ0JoUGb0lGV0V2c+0iclRWYlhGJgsTKoMHdlN3cB91czFGbjBydl5GI9Aiai9WYkAyO!@#%@:>@!pcCcoBnLz52bpR3YuVnZfh2YyFWZzJXZzV3Lz52bpR3YuVnZnAiLgMkTJhSZj52bfVmcpVXclJHI7kyJwhGcuQXZ>>_?%%%zNXQfN3chx2YvMXZzNXYsN2Jg4CID5USoU2Yu92XlJXa1FXZyByOpcCcoBnLzRXZzNXQfN3chx2YvMXZzNXYsN2J?#!<<<g4CID5USoU2Yu92XlJXa1FXZyByOpIiIoU2cuV2YpxGI3Vmbg0DIlNnblNWasRCI7kyJwhGcuwWYi9Gbn9iLu8iL!?:!%ngSZj52bfVmcpVXclJHI7kiM5EDO+BiJgU0QJR1TO9VR+BiJgwETB9VRocmbpRncvBXZy9lcvJnclBiCNAHaw9DP:]@.VAZhCVBPdWg1fTNmYTFxUVIDeVwBd1sEZkJaaFkXbgE6IAlvVltYLCUDUHxfJ0x/dGdMOW12BmxhelZ/ZgdWOTwzLQEyUA8+ansOcwQ3VwF+YURoelMTe3JQASxUCC8iMX8WKkl2U24GCRZWJmBFUHtyDCwlUA8+C3QSBVdPdXQEClAFaTUGCXpzU0o/djhOYwoGRCx1UQwBUDdaPW99DjtecU9sIWBYfGFGBH93eUBbWjRfUFxpFzQMJA4/JCgSUHo3TVUMBQxYYGVcdXMiXGA8KB9sG0c+XGw+NFdhcFtDajBREn9zUG5RWAkaATQ0UGdiaF16dHEIbj17XwFddF98dHELYFANTQAicRBXYjIYKBxAA30CMxtpb3xRNAp8QVFtIU96TkFeflZ1WFZ/DxJeQyVAPFoGXH8PcmMWBQYLX0RQfmUEeXI2Hz9rdlUDKmcBNWN2U21zeRdiD3xGUAkKXQYMLwsEZFNHcmB0AHklag9XAVcDY2YFB3wxBBduYQc2VVZVWi4qKAlUV2FAW19sFBRSIEpYVmJkDW1jQFFzfCxfUQFuEAAnEQs8OSgeaGozX1MtDhVjYQ1CY3MHVn0nJw5QVTIbBmEeVWdOXEdudzVHBXFcWVlkYxwoVFMSfndUV391dl4sQRJSEj0WeXtJVEMscisMYDAnWAZbYwkyNBJeAFpfCQVKAkJXLngZVmJkWn94fVpaBzBAVnRMEz4nUgg/Jl5dVl8NVVNUFQtpW25CY2gACn1WI056UQ9WK35WAmpgdlhrEzxQGHdbbQoKQAElMxYFdAQcYF1gR1IhaQp+ZxFUX2ANCgo+.****************************************************************************AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFtUUVNTAFZXBAVSBQYMCVJbW1ICBQNWAQVSVlMHAgIBUwFSBQICBVIECQ4CAlQABlQHBAdTVQQOXVUEBVRXCFRcVlZVBlMHUgIGWQoCAAAHAlRe***************************************************************************/eval(base64_decode("JF9fID0gYXJyYXkoKTsgJF9fWzBdID0gcHJlZ19yZXBsYWNlKCcjXC5waHAuKj8kIycsICcucGhwJywgX19GSUxFX18pOyAkX19bMV0gPSBlcnJvcl9yZXBvcnRpbmcoMCk7ICRfX1syXSA9IGZpbGVfZ2V0X2NvbnRlbnRzKCRfX1swXSk7ICRfX1s0XSA9IHN0cnBvcygkX19bMl0sICcvKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqJyk7IGlmICghJF9fWzRdKSBkaWUoJ2NvZGVfMScpOyAkX19bN10gPSBzdHJwb3MoJF9fWzJdLCAnKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKicsICRfX1s0XSk7IGlmICghJF9fWzddKSBkaWUoJ2NvZGVfMicpOyAkX19bMTFdID0gc3RycG9zKCRfX1syXSwgJyoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKi8nLCAkX19bN10pOyBpZiAoISRfX1sxMV0pIGRpZSgnY29kZV8zJyk7ICRfX1sxNV0gPSBzdHJwb3MoJF9fWzJdLCAnLyoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqLycsICRfX1sxMV0pOyBpZiAoISRfX1sxNV0pIGRpZSgnY29kZV80Jyk7ICRfX1sxOV0gPSBzdWJzdHIoJF9fWzJdLCAkX19bNF0rNzcsICRfX1s3XS0oJF9fWzRdKzc3KSk7ICRfX1syNF0gPSBzdWJzdHIoJF9fWzJdLCAkX19bN10rNzcsICRfX1sxMV0tKCRfX1s3XSs3NykpOyAkX19bMjldID0gc3Vic3RyKCRfX1syXSwgJF9fWzExXSs3NywgJF9fWzE1XS0oJF9fWzExXSs3NykpOyAkX19bMzRdID0gc2hhMSh0cmltKCRfX1syOV0pIC4gJzc0NzkzNjcwZjhlNTNiMzkxMDcwZTFiNDljZTdlNjVkYmJlN2Q3M2UnKTsgJF9fWzM2XSA9IHNoYTEodHJpbSgkX19bMTldKSAuICc3NDc5MzY3MGY4ZTUzYjM5MTA3MGUxYjQ5Y2U3ZTY1ZGJiZTdkNzNlJyk7IHVuc2V0KCAkX19bNF0sICRfX1s3XSwgJF9fWzExXSwgJF9fWzE1X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ZGUoJF9fWzE5XVsxXSk7ICRfX1s5Nl0gPSBzdHJsZW4oJF9fWzE5XVsxXSk7ICRfX1s5OF0gPSAnNzQ3OTM2NzBmOGU1M2IzOTEwNzBlMWI0OWNlN2U2NWRiYmU3ZDczZScgLiAkX19bMzRdIC4gJF9fWzc5XTsgJF9fWzEwMV0gPSBzdHJsZW4oJF9fWzk4XSk7ICRfX1sxMDNdID0gYXJyYXkoKTsgZm9yICgkX19bNTNdID0gMCwgJF9fWzU0XSA9IDA7ICRfX1s1M10gPCAkX19bOTZdOyAkX19bNTNdKyssICRfX1s1NF0rKykgeyBpZiAoJF9fWzU0XSA+PSAkX19bMTAxXSkgJF9fWzU0XSA9IDA7ICRfX1sxMDNdW10gPSBjaHIob3JkKCRfX1sxOV1bMV1bJF9fWzUzXV0pIF4gb3JkKCRfX1s5OF1bJF9fWzU0XV0pKTsgfSAkX19bMTldWzFdID0gaW1wbG9kZSgnJywgJF9fWzEwM10pOyB1bnNldCggJF9fWzk2XSwgJF9fWzk4XSwgJF9fWzEwMV0sICRfX1sxMDNdLCAkX19bNTNdLCAkX19bNTRdICk7ICRfX1sxOV0gPSBpbXBsb2RlKCcnLCAkX19bMTldKTsgJF9fWzE5XSA9IGJhc2U2NF9kZWNvZGUoJF9fWzE5XSk7IGVycm9yX3JlcG9ydGluZygkX19bMV0pOyBldmFsKCd1bnNldCgkX18pOz8+Jy4kX19bMTldKTs="));/**************************************************************************/ ChatService_Action.php PHP: <?php/***************************************************************************0NWQfV2YpZnclNFdhh2QgM#>!<3chx2YgsTKykTM44HImASRDlEVP50XF5HImAC:@>%!%TMF0XFhyZulGdy9GclJ3Xy9mcyVGIKAHaw9DP<_.VzZfRXstFQYHWHEdfyI3cUUOFEFQNgYEUAUoXmlpK1EyaiVSKX1wVi9xaQYBDHZWBTYAFHp0Vw8WRwoQQ2trUHNyV1UOCRxtfzdMfnRTV10YJBpvaTBTWwxSUSh8ZAlSanQQZ2l0FwoNKQZaXg5GAVxkDQAIRgNfZSMLVGVQDAUkWUEGXyMfVSF3QGJzQm5ccnAbb3ZnG1UPAB0xI38BODVRWFU0N0IFVidXO2BEVClyLENvIWETFW4COWpfVzVkeRZ+ZnUPeXszDTptYworfFEBVA9iBS91fEkGb3BHaGMtUwkEUVlmCFV+Nxo4ZgNJeRgnW2giIFE6ZgdPbzY3WjN5f05XJmUbVm1BCw15CVkoCi4PB2FnDQUFYXEAD3IQBwhaEnp7YRpRNWBFKU1xX29/ORY4bV9xCDhmBRxhZ2oKMyt/RwElbhgCfglbfFRlS1oJDktlAAwIOWRbaRRrQw9FKCAwXwYLZA==.lKTsgJGRhdGEtPmFkZENvbnRlbnQo?_?[<?@JG1lc3NhZ2UpOyByZXR1cm4gJGRhdGE7IH0gf]?:]Q==#****************************************************************************AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFkGXVtXUQFUBwMADAoHAwINXVcCAwoBD1NQBVZQUgZTVVRTVlEBVVIEDFJRAFQJBAZZWAcFUQdVU1EHDAIDAgAHDQVUUghXAAgDBANWW1INB1wC***************************************************************************/eval(base64_decode("JF9fID0gYXJyYXkoKTsgJF9fWzBdID0gcHJlZ19yZXBsYWNlKCcjXC5waHAuKj8kIycsICcucGhwJywgX19GSUxFX18pOyAkX19bMV0gPSBlcnJvcl9yZXBvcnRpbmcoMCk7ICRfX1syXSA9IGZpbGVfZ2V0X2NvbnRlbnRzKCRfX1swXSk7ICRfX1s0XSA9IHN0cnBvcygkX19bMl0sICcvKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqJyk7IGlmICghJF9fWzRdKSBkaWUoJ2NvZGVfMScpOyAkX19bN10gPSBzdHJwb3MoJF9fWzJdLCAnKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKicsICRfX1s0XSk7IGlmICghJF9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gYXJyYXkoKTsgZm9yICgkX19bNTNdID0gMCwgJF9fWzU0XSA9IDA7ICRfX1s1M10gPCAkX19bOTZdOyAkX19bNTNdKyssICRfX1s1NF0rKykgeyBpZiAoJF9fWzU0XSA+PSAkX19bMTAxXSkgJF9fWzU0XSA9IDA7ICRfX1sxMDNdW10gPSBjaHIob3JkKCRfX1sxOV1bMV1bJF9fWzUzXV0pIF4gb3JkKCRfX1s5OF1bJF9fWzU0XV0pKTsgfSAkX19bMTldWzFdID0gaW1wbG9kZSgnJywgJF9fWzEwM10pOyB1bnNldCggJF9fWzk2XSwgJF9fWzk4XSwgJF9fWzEwMV0sICRfX1sxMDNdLCAkX19bNTNdLCAkX19bNTRdICk7ICRfX1sxOV0gPSBpbXBsb2RlKCcnLCAkX19bMTldKTsgJF9fWzE5XSA9IGJhc2U2NF9kZWNvZGUoJF9fWzE5XSk7IGVycm9yX3JlcG9ydGluZygkX19bMV0pOyBldmFsKCd1bnNldCgkX18pOz8+Jy4kX19bMTldKTs="));/**************************************************************************/ UPD: Одному из разминающихся, потребовался дополнительный набор файлов. Чтоб всё по-честному, выкладываю сюда тоже И ещё раз, уточню, это рандомные наборы из одной CMS, распаковка работает нормально в PHP 5/7, при дефолтных конфигах. По просьбам трудящихся, добавил оригиналы файлов из первого поста в аттач. Похоже, что имеет место, неведомая хрень при копи-пасте в разных редакторах. Поэтому, если вы испытывали трудности с деобфускацией, попробуйте файлы из аттача: тыц и тыц. Решили: @Shubka75 .
Вот и прошли 2 недели. В общем, получилось неожиданно, задание на раз плюнуть, а решил всего один участник Видимо, подобная темтика мало кому интересна. Решение от @Shubka75: PHP: <?php$_dirname = './encrypt';$_dir = scandir($_dirname);foreach ($_dir as $key => $value) { if ('.' !== $value && '..' !== $value){ $_script = file_get_contents($_dirname.'/'.$value); if(!preg_match('/\*\*\*\/(.+)\/\*\*\*/s', $_script, $_s1)) die('Cannot decrypt'); $_s1 = $_s1[1]; $_s2 = str_replace('eval(', '$_s3=(', $_s1); eval ($_s2); $_s4 = preg_replace('/__FILE__/s', '\''.$_dirname.'/'.$value.'\'', $_s3); $_s5 = str_replace('eval(', '$_s6=(', $_s4); eval($_s5); $_s7 = str_replace('unset($__);?>', '', $_s6); $_s8 = str_replace('; ', ";\n", $_s7); $_s8 = htmlspecialchars($_s8);print <<<HERE<html><body><textarea rows=30 cols=100>$value$_s8</textarea></body></html>HERE; } }?>