diff --git a/webui/assets/Logo.svg b/webui/assets/Logo.svg new file mode 100644 index 0000000..a736d5a --- /dev/null +++ b/webui/assets/Logo.svg @@ -0,0 +1,605 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/webui/index.php b/webui/index.php index 42977ea..88391dc 100644 --- a/webui/index.php +++ b/webui/index.php @@ -7,13 +7,17 @@ UltyScan - Web Interface +
-

🔍 UltyScan

+

+ UltyScan Logo + UltyScan +

Attack Surface Management Platform

Idle diff --git a/webui/report.php b/webui/report.php index 87cff6a..abdddef 100644 --- a/webui/report.php +++ b/webui/report.php @@ -26,9 +26,11 @@ $report = [ // Helper function to read file safely function readFileContent($path, $maxLines = 500) { - if (!file_exists($path) || !is_readable($path)) return null; + if (!file_exists($path) || !is_readable($path)) + return null; $content = file_get_contents($path); - if ($content === false) return null; + if ($content === false) + return null; // Limit very long files $lines = explode("\n", $content); if (count($lines) > $maxLines) { @@ -42,17 +44,28 @@ function readFileContent($path, $maxLines = 500) function categorizeFile($filename) { $lower = strtolower($filename); - if (strpos($lower, 'nmap') !== false) return 'Port Scans'; - if (strpos($lower, 'nuclei') !== false) return 'Vulnerability Findings'; - if (strpos($lower, 'nikto') !== false) return 'Web Server Analysis'; - if (strpos($lower, 'whatweb') !== false) return 'Technology Detection'; - if (strpos($lower, 'dns') !== false || strpos($lower, 'subdomain') !== false) return 'DNS & Subdomains'; - if (strpos($lower, 'whois') !== false) return 'WHOIS Information'; - if (strpos($lower, 'ssl') !== false || strpos($lower, 'cert') !== false) return 'SSL/TLS Analysis'; - if (strpos($lower, 'dir') !== false || strpos($lower, 'brute') !== false) return 'Directory Discovery'; - if (strpos($lower, 'host') !== false) return 'Host Information'; - if (strpos($lower, 'osint') !== false) return 'OSINT Data'; - if (strpos($lower, 'screenshot') !== false) return 'Screenshots'; + if (strpos($lower, 'nmap') !== false) + return 'Port Scans'; + if (strpos($lower, 'nuclei') !== false) + return 'Vulnerability Findings'; + if (strpos($lower, 'nikto') !== false) + return 'Web Server Analysis'; + if (strpos($lower, 'whatweb') !== false) + return 'Technology Detection'; + if (strpos($lower, 'dns') !== false || strpos($lower, 'subdomain') !== false) + return 'DNS & Subdomains'; + if (strpos($lower, 'whois') !== false) + return 'WHOIS Information'; + if (strpos($lower, 'ssl') !== false || strpos($lower, 'cert') !== false) + return 'SSL/TLS Analysis'; + if (strpos($lower, 'dir') !== false || strpos($lower, 'brute') !== false) + return 'Directory Discovery'; + if (strpos($lower, 'host') !== false) + return 'Host Information'; + if (strpos($lower, 'osint') !== false) + return 'OSINT Data'; + if (strpos($lower, 'screenshot') !== false) + return 'Screenshots'; return 'Other Findings'; } @@ -60,11 +73,13 @@ function categorizeFile($filename) function scanWorkspaceFiles($dir, $prefix = '') { $files = []; - if (!is_dir($dir)) return $files; + if (!is_dir($dir)) + return $files; $items = scandir($dir); foreach ($items as $item) { - if ($item === '.' || $item === '..') continue; + if ($item === '.' || $item === '..') + continue; $path = $dir . '/' . $item; $relativePath = $prefix . $item; @@ -128,7 +143,10 @@ $sectionId = 0; UltyScan Report - <?php echo htmlspecialchars($name); ?> - + +