From ac9556a526d41029d34d4c6fb192e1efc86dfc4e Mon Sep 17 00:00:00 2001 From: "David J. Allen" Date: Thu, 14 Sep 2023 14:37:10 -0600 Subject: [PATCH] Change default scanning ports Signed-off-by: David J. Allen --- README.md | 2 +- internal/scan.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6ef9560..e892d48 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ versions of Go may work, the project has only been tested with v1.20. There are three main commands to use with the tool: `scan`, `list`, and `collect`. To scan a network for BMC nodes, use the `scan` command. If the port is not specified, -`magellan` will probe ports 623, 22, 442, and 5000 by default similar to `dora`: +`magellan` will probe ports 623, 442 (redfish and IPMI) by default: ```bash ./magellan scan --subnet 192.168.0.0 --db.path data/assets.db --port 623 diff --git a/internal/scan.go b/internal/scan.go index 40d33a6..55b2d6a 100644 --- a/internal/scan.go +++ b/internal/scan.go @@ -92,5 +92,5 @@ func ScanForAssets(hosts []string, ports []int, threads int, timeout int) []BMCP } func GetDefaultPorts() []int { - return []int{SSH_PORT, HTTPS_PORT, IPMI_PORT} + return []int{HTTPS_PORT, IPMI_PORT} } \ No newline at end of file