feat: read-only network scanner with automatic NetBox comparison

- New "Network scanner" page: scan IP ranges, networks and host names in
  parallel; hosts are found by ICMP (Windows API, no admin rights, no
  ping.exe), ARP and TCP ports, so hosts blocking ping show up as well
- Name from reverse DNS and NetBIOS, MAC address, open services from a
  configurable port list and response time; results stream in while scanning
- Every address is compared with NetBox automatically (one query per /24):
  NetBox object and DNS name per IP with match / name differs / not in
  NetBox / in NetBox but not reachable; nothing is written
- Double click and context menu open HTTP(S), Remote Desktop, shares or the
  IP address in NetBox

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
MrBlakeandClaude Opus 5.5 committed 2026-10-30 16:32:10 +01:00
1 parent 8464895b06
commit 1c0a8168ed
6 files changed
+778 -2

No files matched your search

+6 -1
View File
@@ -28,6 +28,7 @@ from netbox_sync.ui.pages.connections import ConnectionsPage
from netbox_sync.ui.pages.ipam import IpamPage
from netbox_sync.ui.pages.log import LogPage
from netbox_sync.ui.pages.overview import OverviewPage
from netbox_sync.ui.pages.scanner import ScannerPage
from netbox_sync.ui.pages.settings import SettingsPage
from netbox_sync.ui.pages.switches import SwitchesPage
from netbox_sync.ui.pages.vms import VMsPage
@@ -45,6 +46,7 @@ NAVIGATION = (
("switches", "Switche", "network"),
("clients", "Windows-Clients", "monitor"),
("ipam", "VRFs && Netze", "globe"),
("scanner", "Netzwerk-Scanner", "search"),
("log", "Protokoll", "list"),
)
@@ -104,7 +106,8 @@ class MainWindow(QMainWindow):
self.toast_widget = Toast(central)
for key, page_class in (("overview", OverviewPage), ("connections", ConnectionsPage), ("vms", VMsPage),
("switches", SwitchesPage), ("clients", ClientsPage), ("ipam", IpamPage), ("log", LogPage),
("switches", SwitchesPage), ("clients", ClientsPage), ("ipam", IpamPage), ("scanner", ScannerPage),
("log", LogPage),
("settings", SettingsPage)):
page = page_class(self)
self.pages[key] = page
@@ -273,6 +276,8 @@ class MainWindow(QMainWindow):
page.discover()
elif page is self.pages["clients"] and not self.tasks.busy:
page.scan()
elif page is self.pages["scanner"] and not self.tasks.busy:
page.scan()
def _focus_search(self):
search = getattr(self.current_page(), "search", None)