From 7a99aa5b2dc906654833e40402997345d0764089 Mon Sep 17 00:00:00 2001 From: "David J. Allen" Date: Mon, 2 Oct 2023 15:42:06 -0600 Subject: [PATCH] Exposed more parameters in `magellan.sh` script --- bin/magellan.sh | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/bin/magellan.sh b/bin/magellan.sh index 8d1744d..585e457 100755 --- a/bin/magellan.sh +++ b/bin/magellan.sh @@ -5,6 +5,9 @@ SUBNETS="" PORTS="" USER="" PASS="" +SMD_HOST="" +THREADS="-1" +TIMEOUT="30" ARGS="" @@ -14,7 +17,7 @@ function build(){ function scan() { # ./magellan scan --subnet 172.16.0.0 --port 443 - ${EXE} scan --subnet ${SUBNETS} --port ${PORTS} + ${EXE} scan --subnet ${SUBNETS} --port ${PORTS} --host ${SMD_HOST} --timeout ${TIMEOUT} --threads ${THREADS} } function list(){ @@ -24,7 +27,7 @@ function list(){ function collect() { # ./magellan collect --user admin --pass password - ${EXE} collect --user ${USER} --pass ${PASS} + ${EXE} collect --user ${USER} --pass ${PASS} --timeout ${TIMEOUT} --threads ${THREADS} } @@ -51,6 +54,21 @@ while [[ $# -gt 0 ]]; do shift shift ;; + --smd-host) + SMD_HOST="$2" + shift + shift + ;; + --timeout) + TIMEOUT="$2" + shift + shift + ;; + --threads) + THREADS="$2" + shift + shift + ;; -*|--*) echo "Unknown option $1" exit 1