You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When `--scan-all-computers` is set, SPN-discovered SQL Servers still honor their AD-advertised port or instance. The `--scan-all-computer-ports` list only applies to domain computers without an MSSQLSvc SPN. A per-server worker timeout ensures one wedged target (stuck in nested SQL/LDAP/DNS/SID lookups) cannot keep the worker pool open forever.
|`-t, --targets`| Targets (see Authentication above): single, comma-separated, or file path |
659
-
|`-A, --scan-all-computers`| Scan all domain computers, not just those with SQL SPNs |
660
-
|`--skip-private-address`| Skip private IP check when resolving domain computer addresses |
664
+
| Flag | Default | Description |
665
+
|------|---------|-------------|
666
+
|`-t, --targets`|| Targets (see Authentication above): single, comma-separated, or file path |
667
+
|`-A, --scan-all-computers`| false | Scan all domain computers, not just those with SQL SPNs. SPN-discovered SQL Servers still preserve their AD-advertised port or instance; blindly enumerated computers use the ports from `--scan-all-computer-ports`|
668
+
|`--scan-all-computer-ports`|`1433`| Comma-separated TCP ports to scan on blindly enumerated domain computers when `--scan-all-computers` is set |
669
+
|`--port-check-timeout`|`2`| TCP port reachability timeout (seconds) before skipping a target |
670
+
|`--skip-private-address`| false | Skip private IP check when resolving domain computer addresses |
rootCmd.Flags().BoolVar(&disablePossibleEdges, "disable-possible-edges", false, "Disable possible edges (makes them non-traversable in schema and edge data)")
138
141
rootCmd.Flags().BoolVar(&skipIPDedupe, "skip-ip-dedupe", false, "Skip DNS-based target deduplication (keeps all targets even if they resolve to the same IP)")
142
+
rootCmd.Flags().StringVar(&scanAllComputerPorts, "scan-all-computer-ports", "1433", "Comma-separated TCP ports to scan for --scan-all-computers targets")
139
143
rootCmd.Flags().IntVar(&linkedServerTimeout, "linked-timeout", 300, "Linked server enumeration timeout (seconds)")
144
+
rootCmd.Flags().IntVar(&portCheckTimeout, "port-check-timeout", 2, "TCP port reachability timeout before skipping a target (seconds)")
140
145
rootCmd.Flags().IntVar(&memoryThresholdPercent, "memory-threshold", 90, "Stop when memory exceeds this percentage")
0 commit comments