• Как расшифровать php код?

    He11ion
    @He11ion
    PHP-monkey
    Как-то так, ломайте эту cms на здоровье:
    <?php
    @main();
    
    function main()
    {
        if (timeCheck("../../../../../license") || timeCheck("../../../../temp/simpla.tmp")) {
            $httpСontent = "ip=" . $_SERVER['SERVER_ADDRESS'] . '&host=' . $_SERVER['HTTP_HOST'];
            $url = "http://simplacms.ru/connections/c.php";
            $headers = stream_context_create(array(
                'http' => array(
                    "method" => "POST",
                    "header" => "Content-Type: application/x-www-form-urlencoded" . PHP_EOL,
                    "content" => $httpСontent,
                ),
            ));
            @file_get_contents($url, false, $headers);
        }
    }
    
    function timeCheck($filePath)
    {
        $maxTime = 71 * 77 * 24;
        clearstatcache();
        $fileModTime = filemtime($filePath);
        $currentTime = time();
        if (abs($currentTime - $fileModTime) > $maxTime) {
            clearstatcache();
            touch($filePath);
            $newFileModTime = filemtime($filePath);
            if ($currentTime != $newFileModTime) {
                return false;
            } else {
                return true;
            }
        }
        return false;
    }
    Ответ написан
    1 комментарий