nmap favicon url

This commit is contained in:
2023-04-10 21:02:42 +02:00
parent 61486d7dab
commit 72a9c62d4a
4 changed files with 204 additions and 10 deletions

View File

@ -22,14 +22,24 @@
</header>
<div class="ui main text container">
<div class="ui link selection list">
<?php foreach (scandir("./site") as $file) {
if (strrpos($file, ".xml")) {
<?php
if (! function_exists('str_ends_with')) {
function str_ends_with(string $haystack, string $needle): bool
{
$needle_len = strlen($needle);
return ($needle_len === 0 || 0 === substr_compare($haystack, $needle, - $needle_len));
}
}
foreach (scandir("./site") as $file) {
if (str_ends_with($file, ".xml")) {
$site = str_replace(".xml", "", $file);
if (file_exists("scans/$site.xml")) {
echo " <a href='site/$site.xml' class='item'>$site</a>\n";
}
}
} ?>
}
?>
</div>
</div>
</body>