diff --git a/src/lib/components/furniture/TopNav.svelte b/src/lib/components/furniture/TopNav.svelte index 37d5f9d..0bfb18a 100644 --- a/src/lib/components/furniture/TopNav.svelte +++ b/src/lib/components/furniture/TopNav.svelte @@ -81,22 +81,27 @@ switch ($navbarDisplay) { case 'bookmarked': - items = $bookmarks.map((bookmark) => ({ - href: bookmark.href, - label: bookmark.label, - icon: bookmark.icon, - description: bookmark.description, - })); + items = $bookmarks + .filter((bookmark) => bookmark.label) + .map((bookmark) => ({ + href: bookmark.href, + label: bookmark.label, + icon: bookmark.icon, + description: bookmark.description, + })); // Show most recent bookmarks first return items.reverse(); case 'frequent': - items = $frequentlyUsedTools.slice(0, 8).map((tool) => ({ - href: tool.href, - label: tool.label || 'Untitled Tool', - icon: tool.icon, - description: tool.description, - })); + items = $frequentlyUsedTools + .filter((tool) => tool.label) + .slice(0, 8) + .map((tool) => ({ + href: tool.href, + label: tool.label || 'Untitled Tool', + icon: tool.icon, + description: tool.description, + })); // Already sorted by frequency, no need to reverse return items; @@ -106,7 +111,7 @@ case 'default': default: // Keep default navigation items in their original order - return TOP_NAV; + return TOP_NAV.filter((item) => item.label); } })(); @@ -158,8 +163,8 @@
{#each getSubPages(item.href) as subItem ('href' in subItem ? subItem.href : subItem.title)} - {#if 'href' in subItem} - + {#if 'href' in subItem && subItem.label} + - +

Contributing

diff --git a/src/lib/components/page-specific/about/DeployingSection.svelte b/src/lib/components/page-specific/about/DeployingSection.svelte new file mode 100644 index 0000000..d170204 --- /dev/null +++ b/src/lib/components/page-specific/about/DeployingSection.svelte @@ -0,0 +1,58 @@ + + +

+

Deploying

+

+ As well as our free hosted version, at networkingtoolbox.net, we've made + it as quick and easy as possible for you to deploy your own instance. Either on your own infrastructure, or using + one of our supported free hosting providers. +

+ +

Option #1 - Docker

+

With Docker installed, just run the following command:

+
+ docker run -p 8080:8080 lissy93/networking-toolbox +
+

+ You can also checkout our docker-compose.yml, using the + lissy93/networking-toolbox image from + DockerHub. +

+ +

Option #2 - Free Hosting Provider

+

+ You can quickly and easily deploy your own instance for free, on any other our supported hosting providers! Just + fork our repository, and then import it into your chosen provider. +

+ +

Alternatively, just click one of the buttons below!

+ +

Option #3 - GitHub Pages

+
    +
  1. Fork the repository (you'll need a free GitHub account)
  2. +
  3. Go to your new repo's Settings → Pages → Source and select the gh-pages branch
  4. +
  5. Then, head to the Actions tab, find the "Deploy to GitHub Pages" workflow, and trigger it
  6. +
  7. Visit https://[your-username].github.io/networking-toolbox/ to see your deployed app
  8. +
+ +

Option #4 - Source

+

+ If you want to make any changes before deploying, or want to host it on any other platform not already covered + above, then you can easily do so, by compiling the app from source. We've dot detailed Building Instructions, or you can check out the docs in the repo. +

+
+ + diff --git a/src/lib/constants/icon-map.ts b/src/lib/constants/icon-map.ts index cdfa52d..4da32f9 100644 --- a/src/lib/constants/icon-map.ts +++ b/src/lib/constants/icon-map.ts @@ -236,5 +236,21 @@ export const iconMap: Record = { 'spf-flatten': ``, 'ocsp-stapling': ``, 'tls-cipher-presets': ``, + cookie: ``, + archive: ``, + compress: ``, + 'ref-common-subnets': ``, + 'ref-network-classes': ``, + 'ref-reserved-ranges': ``, + terminal: ``, + 'file-x': ``, + folder: ``, + package: ``, + tag: ``, + monitor: ``, + lost: ``, + lock: ``, + 'dnssec-chain': ``, + signature: ``, // '': ``, }; diff --git a/src/lib/constants/nav.ts b/src/lib/constants/nav.ts index f90dfa2..2fc64e7 100644 --- a/src/lib/constants/nav.ts +++ b/src/lib/constants/nav.ts @@ -25,13 +25,13 @@ export const STANDALONE_PAGES: NavItem[] = [ { href: makePath('/bookmarks'), label: 'Bookmarks', - description: 'Saved network calculations and frequently used tools', + description: 'Save and organize network calculations and tool results', keywords: ['bookmarks', 'saved', 'favorites', 'shortcuts', 'calculations'], }, { href: makePath('/offline'), label: 'Offline', - description: 'Offline mode and cached calculations', + description: 'Access cached tools and data offline', keywords: ['offline', 'cache', 'no-internet', 'local'], }, ]; @@ -40,7 +40,7 @@ export const TOP_NAV: NavItem[] = [ { href: makePath('/subnetting'), label: 'Subnetting', - description: 'Subnet calculators and network planning tools for IPv4, IPv6, VLSM, and supernetting', + description: 'Subnet calculators for IPv4, IPv6, VLSM, supernetting', keywords: [ 'subnet', 'calculator', @@ -57,12 +57,14 @@ export const TOP_NAV: NavItem[] = [ 'hosts', 'addressing', 'allocation', + 'ip calculator', + 'subnet tool', ], }, { href: makePath('/cidr'), label: 'CIDR', - description: 'CIDR tools and converters for network analysis and optimization', + description: 'CIDR notation tools, converters, and calculators', keywords: [ 'cidr', 'subnet', @@ -84,7 +86,7 @@ export const TOP_NAV: NavItem[] = [ { href: makePath('/ip-address-convertor'), label: 'IP Tools', - description: 'IP address converters, validators, generators, and format transformation tools', + description: 'IP address converters, validators, and generators', keywords: [ 'ip', 'address', @@ -103,12 +105,14 @@ export const TOP_NAV: NavItem[] = [ 'enumerate', 'validation', 'transformation', + 'ip format', + 'address converter', ], }, { href: makePath('/dns'), label: 'DNS Tools', - description: 'DNS record generators, validators, zone tools, and DNSSEC utilities', + description: 'DNS record generators, validators, and DNSSEC tools', keywords: [ 'dns', 'records', @@ -130,12 +134,14 @@ export const TOP_NAV: NavItem[] = [ 'dkim', 'soa', 'ns', + 'nameserver', + 'domain', ], }, { href: makePath('/diagnostics'), label: 'Lookups', - description: 'Network diagnostics, DNS lookups, HTTP analysis, TLS testing, and connectivity checks', + description: 'Network diagnostics and connectivity testing', keywords: [ 'diagnostics', 'lookup', @@ -154,12 +160,14 @@ export const TOP_NAV: NavItem[] = [ 'rdap', 'whois', 'analysis', + 'dns checker', + 'ssl test', ], }, { href: makePath('/reference'), label: 'Ref', - description: 'Networking reference guides, explanations, and quick lookup tables', + description: 'Networking reference guides and lookup tables', keywords: [ 'reference', 'guide', @@ -189,38 +197,57 @@ export const SUB_NAV: Record = { { href: makePath('/subnetting/ipv4-subnet-calculator'), label: 'IPv4 Subnet Calculator', - description: - 'Calculate subnet information, network addresses, broadcast addresses, and host ranges with visual network analysis', + description: 'Calculate subnet masks, network addresses, broadcast addresses, and host ranges', icon: 'subnet-calculator', - keywords: ['subnet', 'calculator', 'ipv4', 'network', 'broadcast', 'hosts', 'cidr', 'netmask'], + keywords: [ + 'subnet', + 'calculator', + 'ipv4', + 'network', + 'broadcast', + 'hosts', + 'cidr', + 'netmask', + 'wildcard', + 'gateway', + 'usable hosts', + ], }, { href: makePath('/subnetting/ipv6-subnet-calculator'), label: 'IPv6 Subnet Calculator', - description: 'Calculate IPv6 subnets with 128-bit addressing and modern network prefix planning', + description: 'Calculate IPv6 subnets and network prefixes', icon: 'ipv6-subnet-calculator', keywords: ['subnet', 'calculator', 'ipv6', 'network', 'prefix', '128-bit', 'addressing'], }, { href: makePath('/subnetting/vlsm-calculator'), label: 'VLSM Calculator', - description: - 'Variable Length Subnet Mask calculator to break networks into multiple smaller subnets with optimal allocation', + description: 'Variable Length Subnet Mask calculator for splitting networks into smaller subnets', icon: 'vlsm-calculator', - keywords: ['vlsm', 'variable', 'length', 'subnet', 'mask', 'calculator', 'subnets', 'allocation'], + keywords: [ + 'vlsm', + 'variable', + 'length', + 'subnet', + 'mask', + 'calculator', + 'subnets', + 'allocation', + 'network design', + ], }, { href: makePath('/subnetting/supernet-calculator'), label: 'Supernet Calculator', - description: - 'Aggregate multiple networks into supernets for route summarization and efficient routing table management', + description: 'Aggregate multiple networks into supernets for route summarization', icon: 'supernet-calculator', keywords: ['supernet', 'calculator', 'aggregate', 'route', 'summarization', 'routing', 'table'], }, { href: makePath('/subnetting/planner'), label: 'Subnet Planner', - description: 'Design VLSM networks with drag-and-drop subnet planning and optimize address allocation strategies', + description: 'Design VLSM networks with drag-and-drop planning', icon: 'subnet-planner', keywords: ['subnet', 'planner', 'design', 'vlsm', 'networks', 'planning', 'allocation'], }, @@ -264,43 +291,42 @@ export const SUB_NAV: Record = { { href: makePath('/cidr/next-available'), label: 'Next Available Subnet', - description: 'Find available subnets from pools minus allocations with first-fit or best-fit policies', + description: 'Find available subnets in pools using first-fit or best-fit algorithms', icon: 'next-available-subnet', keywords: ['next', 'available', 'subnet', 'pools', 'allocations', 'first-fit', 'best-fit'], }, { href: makePath('/cidr/gaps'), label: 'Free Space Finder', - description: 'List all free blocks in pool CIDRs minus allocations, filterable by target prefix length', + description: 'List unallocated IP blocks in CIDR pools by prefix length', icon: 'cidr-gaps', keywords: ['free', 'space', 'gaps', 'finder', 'blocks', 'pools', 'allocations', 'prefix'], }, { href: makePath('/cidr/deaggregate'), label: 'CIDR Deaggregate', - description: 'Decompose CIDR blocks and ranges into uniform target prefix subnets (e.g., break into /24s)', + description: 'Break CIDR blocks into smaller uniform subnets (e.g., split into /24s)', icon: 'cidr-deaggregate', keywords: ['cidr', 'deaggregate', 'decompose', 'break', 'uniform', 'prefix', 'subnets', 'split'], }, { href: makePath('/cidr/compare'), label: 'CIDR Compare', - description: - 'Compare two lists of CIDR blocks to identify added, removed, and unchanged entries after normalization', + description: 'Compare CIDR lists to show added, removed, and unchanged blocks', icon: 'cidr-compare', keywords: ['cidr', 'compare', 'diff', 'audit', 'added', 'removed', 'unchanged', 'normalization'], }, { href: makePath('/cidr/allocator'), label: 'CIDR Allocator', - description: 'Pack requested subnet sizes into network pools using bin-packing algorithms (first-fit, best-fit)', + description: 'Allocate subnets into network pools using first-fit or best-fit algorithms', icon: 'cidr-allocator', keywords: ['cidr', 'allocator', 'bin-packing', 'first-fit', 'best-fit', 'subnet', 'allocation', 'packing'], }, { href: makePath('/cidr/alignment'), label: 'CIDR Alignment', - description: 'Check if IP addresses and ranges align to CIDR prefix boundaries with optimization suggestions', + description: 'Check if IP addresses align to CIDR prefix boundaries', icon: 'cidr-alignment', keywords: [ 'cidr', @@ -347,7 +373,7 @@ export const SUB_NAV: Record = { { href: makePath('/cidr/set-operations/diff'), label: 'Difference (A - B)', - description: 'Compute A - B set operations on CIDR blocks, ranges, and IP addresses', + description: 'Subtract CIDR blocks, ranges, and IPs from another set', icon: 'diff', keywords: [ 'set', @@ -369,7 +395,7 @@ export const SUB_NAV: Record = { { href: makePath('/cidr/set-operations/overlap'), label: 'Overlap (A ∩ B)', - description: 'Detect intersections between two sets of IP addresses and ranges', + description: 'Find overlapping IPs and ranges between two sets', icon: 'intersection', keywords: [ 'set', @@ -390,7 +416,7 @@ export const SUB_NAV: Record = { { href: makePath('/cidr/set-operations/contains'), label: 'Contains (A ⊆ B)', - description: 'Check if one set fully contains another with detailed containment analysis', + description: 'Check if one IP set contains another', icon: 'containment', keywords: [ 'set', @@ -1123,6 +1149,25 @@ export const SUB_NAV: Record = { icon: 'dns-adflag', keywords: ['dnssec', 'ad', 'flag', 'authenticated', 'data', 'doh', 'validation', 'security', 'dns'], }, + { + href: makePath('/diagnostics/dns/dnssec-validation-chain'), + label: 'DNSSEC Validation Chain', + description: 'Validate full DNSSEC chain from root to domain with DS/DNSKEY matching and RRSIG verification', + icon: 'dnssec-chain', + keywords: [ + 'dnssec', + 'validation', + 'chain', + 'ds', + 'dnskey', + 'rrsig', + 'trust', + 'security', + 'dns', + 'root', + 'authenticated', + ], + }, { href: makePath('/diagnostics/dns/soa-serial'), label: 'SOA Serial Analyzer', @@ -1214,6 +1259,20 @@ export const SUB_NAV: Record = { icon: 'http-perf', keywords: ['http', 'performance', 'timing', 'dns', 'tcp', 'tls', 'ttfb', 'metrics', 'analyzer'], }, + { + href: makePath('/diagnostics/http/compression'), + label: 'HTTP Compression Check', + description: 'Test gzip, brotli, and deflate compression support and measure size differences', + icon: 'archive', + keywords: ['http', 'compression', 'gzip', 'brotli', 'deflate', 'size', 'reduction', 'performance'], + }, + { + href: makePath('/diagnostics/http/cookie-security'), + label: 'Cookie Security Inspector', + description: 'Inspect Set-Cookie headers for Secure, HttpOnly, SameSite, and other security attributes', + icon: 'cookie', + keywords: ['http', 'cookie', 'security', 'secure', 'httponly', 'samesite', 'csrf', 'xss', 'attributes'], + }, ], }, { @@ -1257,6 +1316,13 @@ export const SUB_NAV: Record = { icon: 'tls-cipher-presets', keywords: ['tls', 'cipher', 'presets', 'modern', 'intermediate', 'legacy', 'security', 'suites', 'probe'], }, + { + href: makePath('/diagnostics/tls/banner'), + label: 'Service Banner Grabber', + description: 'Retrieve service banners from SSH, SMTP, HTTP, FTP, and other network services', + icon: 'terminal', + keywords: ['banner', 'service', 'ssh', 'smtp', 'ftp', 'http', 'telnet', 'fingerprinting', 'reconnaissance'], + }, ], }, { @@ -1889,10 +1955,10 @@ function extractAllNavItems(navStructure: (NavItem | NavGroup)[]): NavItem[] { for (const item of navStructure) { if ('items' in item) { - // It's a NavGroup (might have href too, but we only want its items) - items.push(...item.items); + // It's a NavGroup - recursively extract items from its children + items.push(...extractAllNavItems(item.items)); } else if ('href' in item && 'label' in item) { - // It's a NavItem (has href and label) + // It's a NavItem (has href and label, but no items) items.push(item as NavItem); } } diff --git a/src/lib/constants/site.ts b/src/lib/constants/site.ts index b520bed..bb5f813 100644 --- a/src/lib/constants/site.ts +++ b/src/lib/constants/site.ts @@ -10,6 +10,8 @@ export const site = { url: 'https://networking-toolbox.as93.net', image: 'https://networking-toolbox.as93.net/og-image.png', repo: 'https://github.com/lissy93/networking-toolbox', + mirror: 'https://codeberg.org/alicia/networking-toolbox', + docker: 'https://hub.docker.com/r/lissy93/networking-toolbox', }; export const about = { diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 5c64ac7..5c5578a 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -47,6 +47,16 @@ // Dynamic favicon based on page icon const dynamicFavicon = $derived.by(() => { void faviconTrigger; // Include in order to force updates when theme changes + + // Check if we're on an error page + const isErrorPage = $page.status >= 400; + if (isErrorPage) { + const errorFaviconDataUri = generateFaviconDataUri('lost'); + if (errorFaviconDataUri) { + return errorFaviconDataUri; + } + } + const currentPath = $page.url.pathname; const pageDetailsWithIcon = getPageDetailsWithIcon(currentPath); diff --git a/src/routes/about/(sections)/deploying/+page.svelte b/src/routes/about/(sections)/deploying/+page.svelte new file mode 100644 index 0000000..2844418 --- /dev/null +++ b/src/routes/about/(sections)/deploying/+page.svelte @@ -0,0 +1,5 @@ + + + diff --git a/src/routes/about/+page.svelte b/src/routes/about/+page.svelte index 17c5373..9fe2e11 100644 --- a/src/routes/about/+page.svelte +++ b/src/routes/about/+page.svelte @@ -1,6 +1,6 @@ + +
+
+

DNSSEC Validation Chain Checker

+

Validate DNSSEC chain from root to domain, verify DS/DNSKEY matching and RRSIG signatures

+
+ + +
+
+ + +

Quick Examples

+
+
+ {#each examples as example, i (i)} + + {/each} +
+
+
+ + +
+
+

Domain Name

+
+
+
{ + e.preventDefault(); + validateChain(); + }} + > +
+ + clearExampleSelection()} + /> +
+ + +
+
+
+ + {#if error} +
+
+
+ +
+ Validation Failed +

{error}

+
+
+
+
+ {/if} + + {#if loading} +
+
+
+ +
+

Validating DNSSEC Chain

+

Querying DNS records from root to {domain}...

+
+
+
+
+ {/if} + + {#if results} +
+
+

DNSSEC Validation Results

+
+
+ +
+
+

+ {#if results.valid} + + DNSSEC Valid + {:else} + + DNSSEC Invalid + {/if} +

+
+
+
+
+ Domain: + {results.domain} +
+
+ Chain Links: + {results.summary.totalLinks} +
+
+ Validated: + {results.summary.validatedLinks}/{results.summary.totalLinks} +
+
+ Status: + + {results.valid ? 'Secure' : 'Broken Chain'} + +
+
+ + {#if results.summary.errors.length > 0} +
+

Validation Errors:

+
    + {#each results.summary.errors as err, i (i)} +
  • {err}
  • + {/each} +
+
+ {/if} +
+
+ + +
+
+

DNSSEC Chain

+
+
+
+ {#each results.chain as link, i (i)} + + + {#if i < results.chain.length - 1} +
+ +
+ {/if} + {/each} +
+
+
+
+
+ {/if} +
+ + diff --git a/src/routes/diagnostics/http/compression/+page.svelte b/src/routes/diagnostics/http/compression/+page.svelte new file mode 100644 index 0000000..fd8071d --- /dev/null +++ b/src/routes/diagnostics/http/compression/+page.svelte @@ -0,0 +1,490 @@ + + +
+
+

HTTP Compression Check

+

Test gzip, brotli, and deflate compression support and measure size differences

+
+ + +
+
+ + +

Quick Examples

+
+
+ {#each examples as example, i (i)} + + {/each} +
+
+
+ + +
+
+

URL to Test

+
+
+
+ +
+ clearExampleSelection()} + onkeydown={(e) => e.key === 'Enter' && checkCompression()} + /> + +
+
+
+
+ + {#if error} +
+
+
+ +
+ Compression Test Failed +

{error}

+
+
+
+
+ {/if} + + {#if loading} +
+
+
+ +
+

Testing Compression

+

Checking support for gzip, brotli, and deflate compression...

+
+
+
+
+ {/if} + + {#if results} +
+
+

Compression Results

+
+
+ +
+
+

Overview

+
+
+
+
+
Server Compression
+
+ + {results.serverCompression.enabled ? 'Enabled' : 'Disabled'} +
+ {#if results.serverCompression.encoding} +
{results.serverCompression.encoding}
+ {/if} +
+ +
+
Best Compression
+
+ + {results.bestCompression.encoding} +
+
{results.bestCompression.ratio.toFixed(1)}% reduction
+
+ +
+
Uncompressed Size
+
{formatBytes(results.uncompressed.size)}
+
+ +
+
Time Taken
+
{results.timings.total}ms
+
+
+
+
+ + +
+
+

Compression Methods

+
+
+
+ {#each results.compressionResults as result (result.encoding)} +
+
+
+ + {result.encoding} +
+
+ + {result.supported ? 'Supported' : 'Not Supported'} +
+
+ + {#if result.supported} +
+
+
+
+
+
+
+ {formatBytes(results.uncompressed.size)} + {formatBytes(result.compressedSize)} +
+
+ +
+
+ Reduction: + {result.ratio.toFixed(1)}% +
+
+ Time: + {result.responseTime}ms +
+
+
+ {/if} +
+ {/each} +
+
+
+ + +
+
+

Response Headers

+
+
+
+ {#each Object.entries(results.headers) as [key, value] (key)} +
+ {key} + {value} +
+ {/each} +
+
+
+
+
+ {/if} +
+ + diff --git a/src/routes/diagnostics/http/cookie-security/+page.svelte b/src/routes/diagnostics/http/cookie-security/+page.svelte new file mode 100644 index 0000000..4f962c3 --- /dev/null +++ b/src/routes/diagnostics/http/cookie-security/+page.svelte @@ -0,0 +1,737 @@ + + +
+
+

HTTP Cookie Security Inspector

+

Analyze Set-Cookie headers for Secure, HttpOnly, SameSite, and other security attributes

+
+ + +
+
+ + +

Quick Examples

+
+
+ {#each examples as example, i (i)} + + {/each} +
+
+
+ + +
+
+

URL to Inspect

+
+
+
+ +
+ clearExampleSelection()} + onkeydown={(e) => e.key === 'Enter' && checkCookieSecurity()} + /> + +
+
+
+
+ + {#if error} +
+
+
+ +
+ Cookie Inspection Failed +

{error}

+
+
+
+
+ {/if} + + {#if loading} +
+
+
+ +
+

Analyzing Cookies

+

Inspecting Set-Cookie headers for security attributes...

+
+
+
+
+ {/if} + + {#if results} +
+
+

Cookie Security Analysis

+
+
+ +
+
+

Security Score

+
+
+
+
+
{getSecurityGrade(results.securityScore).grade}
+
+ {results.securityScore !== null ? `${results.securityScore}/100` : 'No cookies'} +
+
+
+

Overall Assessment

+

{results.summary}

+
+
+ Total Cookies: + {results.totalCookies} +
+
+ Secure Cookies: + {results.secureCookies} +
+
+ HttpOnly Cookies: + {results.httpOnlyCookies} +
+
+
+
+
+
+ + + {#if results.cookies && results.cookies.length > 0} +
+
+

Cookie Details

+
+
+
+ {#each results.cookies as cookie (cookie.id || cookie.name)} + + {/each} +
+
+
+ {:else} +
+
+
+ +

No Cookies Found

+

The server did not send any Set-Cookie headers in the response.

+
+
+
+ {/if} + + + {#if results.recommendations && results.recommendations.length > 0} +
+
+

Security Recommendations

+
+
+
+ {#each results.recommendations as recommendation, index (index)} +
+ +
+

{recommendation.title}

+

{recommendation.description}

+ {#if recommendation.example} + {recommendation.example} + {/if} +
+
+ {/each} +
+
+
+ {/if} +
+
+ {/if} +
+ + diff --git a/src/routes/diagnostics/tls/banner/+page.svelte b/src/routes/diagnostics/tls/banner/+page.svelte new file mode 100644 index 0000000..7cccc06 --- /dev/null +++ b/src/routes/diagnostics/tls/banner/+page.svelte @@ -0,0 +1,584 @@ + + +
+
+

Service Banner Grabber

+

Retrieve service banners from SSH, SMTP, HTTP, FTP, and other network services

+
+ + +
+
+ + +

Quick Examples

+
+
+ {#each examples as example, i (i)} + + {/each} +
+
+
+ + +
+
+

Target Service

+
+
+
+
+ + +
+
+ +
+
+ + clearExampleSelection()} + onkeydown={(e) => e.key === 'Enter' && grabBanner()} + /> +
+
+ + clearExampleSelection()} + onkeydown={(e) => e.key === 'Enter' && grabBanner()} + /> +
+
+ + +
+
+ + {#if error} +
+
+
+ +
+ Connection Failed +

{error}

+
+
+
+
+ {/if} + + {#if loading} +
+
+
+ +
+

Grabbing Banner

+

Connecting to {host}:{port}...

+
+
+
+
+ {/if} + + {#if results} +
+
+

Banner Information

+
+
+ +
+
+

Connection Details

+
+
+
+
+ Host: + {results.host} +
+
+ Port: + {results.port} +
+
+ Protocol: + + + {results.protocol || 'Unknown'} + +
+
+ Response Time: + {results.responseTime}ms +
+
+
+
+ + + + + + {#if results.analysis && (results.analysis.software || results.analysis.version || results.analysis.os || (results.analysis.security && results.analysis.security.length > 0))} +
+
+

Service Analysis

+
+
+
+ {#if results.analysis.software} +
+ +
+

Software

+

{results.analysis.software}

+
+
+ {/if} + {#if results.analysis.version} +
+ +
+

Version

+

{results.analysis.version}

+
+
+ {/if} + {#if results.analysis.os} +
+ +
+

Operating System

+

{results.analysis.os}

+
+
+ {/if} + {#if results.analysis.security && results.analysis.security.length > 0} +
+ +
+

Security Notes

+
    + {#each results.analysis.security as note, i (i)} +
  • {note}
  • + {/each} +
+
+
+ {/if} +
+
+
+ {/if} + + + {#if results.tls} +
+
+

TLS Information

+
+
+
+
+ Protocol: + {results.tls.protocol} +
+
+ Cipher: + {results.tls.cipher} +
+ {#if results.tls.certificate} +
+ Certificate CN: + {results.tls.certificate.cn} +
+ {/if} +
+
+
+ {/if} +
+
+ {/if} +
+ + diff --git a/src/routes/dns/+page.svelte b/src/routes/dns/+page.svelte index 15d17b7..bf5dbf1 100644 --- a/src/routes/dns/+page.svelte +++ b/src/routes/dns/+page.svelte @@ -4,14 +4,16 @@ import type { NavItem, NavGroup } from '$lib/constants/nav'; import '../../styles/pages.scss'; - // Extract tools for DNS section + // Extract tools for DNS section (excluding category headers with title) function extractNavItems(items: (NavItem | NavGroup)[]): NavItem[] { const navItems: NavItem[] = []; for (const item of items) { - if ('href' in item) { - navItems.push(item); - } else if ('title' in item && 'items' in item) { - navItems.push(...item.items); + if ('items' in item) { + // It's a category - extract its children recursively + navItems.push(...extractNavItems(item.items)); + } else if ('href' in item && 'label' in item && !('title' in item)) { + // It's a tool (has href and label but no title) + navItems.push(item as NavItem); } } return navItems; diff --git a/src/routes/sitemap/+page.svelte b/src/routes/sitemap/+page.svelte index e94ed51..7763156 100644 --- a/src/routes/sitemap/+page.svelte +++ b/src/routes/sitemap/+page.svelte @@ -1,11 +1,13 @@