From 2865295911dfe8dcb31ceeaf996e201870d37bbe Mon Sep 17 00:00:00 2001 From: Jake Daynes Date: Fri, 13 Mar 2026 01:56:19 -0700 Subject: [PATCH] update nmap scan to include Secure state --- internal/scan/nmap/scanner.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/scan/nmap/scanner.go b/internal/scan/nmap/scanner.go index 4226a6e..57ad9b2 100644 --- a/internal/scan/nmap/scanner.go +++ b/internal/scan/nmap/scanner.go @@ -71,6 +71,8 @@ func runScan(ctx context.Context, nmap Runner, reporter Reporter) ([]cameradar.S continue } + isSecure := strings.Contains(port.Service.Name, "rtsps") || strings.Contains(port.Service.Name, "ssl") || port.ID == 322 || port.ID == 8322 + for _, address := range host.Addresses { addr, err := netip.ParseAddr(address.Addr) if err != nil { @@ -82,6 +84,7 @@ func runScan(ctx context.Context, nmap Runner, reporter Reporter) ([]cameradar.S Device: port.Service.Product, Address: addr, Port: port.ID, + Secure: isSecure, }) } }