index hacktool
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>hxxp://localhost/shun-tea.php?6jxwa9sf.html</loc>
<lastmod>2020-06-01</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>hxxp://localhost/shun-tea.php?8egbvh6e.html</loc>
<lastmod>2020-06-01</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>hxxp://localhost/shun-tea.php?bdhxzfdh.html</loc>
<lastmod>2020-06-01</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
...
3.86
7
...
$request_url = isset($_GET['url']) ? $_GET['url'] : '';
if (!empty($request_url))
{
$sx_content .= "\n\t\t" . '<url>';
$sx_content .= "\n\t\t\t" . '<loc>http://' . $_SERVER['SERVER_NAME'] . $url . '?' . $request_url . '</loc>';
$sx_content .= "\n\t\t\t" . '<lastmod>' . date('Y-m-d') . '</lastmod>';
$sx_content .= "\n\t\t\t" . '<changefreq>daily</changefreq>';
$sx_content .= "\n\t\t\t" . '<priority>0.8</priority>';
$sx_content .= "\n\t\t</url>";
}
else
{
for ($j = 0;$j < 5000;$j++)
{
$str1 = random(8);
$sx_content .= "\n\t\t" . '<url>';
$sx_content .= "\n\t\t\t" . '<loc>http://' . $_SERVER['SERVER_NAME'] . $url . '?' . $str1 . ".html" . '</loc>';
$sx_content .= "\n\t\t\t" . '<lastmod>' . date('Y-m-d') . '</lastmod>';
$sx_content .= "\n\t\t\t" . '<changefreq>daily</changefreq>';
$sx_content .= "\n\t\t\t" . '<priority>0.8</priority>';
$sx_content .= "\n\t\t</url>";
}
}
$sx_content .= "\n\t</urlset>";
$xr = fopen('sitemap_tea.xml', "w");
$xrr = fwrite($xr, $sx_content);
Thank you!
7
0
Are there any code examples left?
New code examples in category Html
-
Html 2022-03-27 21:55:05 how to kill html
-
Html 2022-03-27 21:55:02 How to create web urls without extensions
-
Html 2022-03-27 21:45:11 space between 2 h tags without break
-
Html 2022-03-27 21:40:13 how to resize submit button in html
-
Html 2022-03-27 20:40:18 https://www.codegrepper.com
-
Html 2022-03-27 19:55:09 show image inside table with innerhtml
-
Html 2022-03-27 19:30:47 html email input
-
Html 2022-03-27 18:45:01 how to add favicon in html
-
Html 2022-03-27 18:15:21 picture html
-
Html 2022-03-27 18:15:11 ex: javaasdasdasdasd