From a7ef9fdd30125160d4ab520a8ea70b967e04ff62 Mon Sep 17 00:00:00 2001 From: xpz3 Date: Sun, 10 May 2020 17:50:53 +0530 Subject: [PATCH] CLI Parsing - '-b' should accept a value and '-e' should not shift twice (Fixes #891) --- fluxion.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fluxion.sh b/fluxion.sh index f96385d..f07c0d5 100755 --- a/fluxion.sh +++ b/fluxion.sh @@ -88,7 +88,7 @@ source "$FLUXIONLibPath/HelpUtils.sh" # =================== < Parse Parameters > =================== # # ============================================================ # if ! FLUXIONCLIArguments=$( - getopt --options="vdk5rinmtbhe:c:l:a:r" \ + getopt --options="vdk5rinmthb:e:c:l:a:r" \ --longoptions="debug,version,killer,5ghz,installer,reloader,help,airmon-ng,multiplexer,target,test,auto,bssid:,essid:,channel:,language:,attack:,ratio,skip-dependencies" \ --name="FLUXION V$FLUXIONVersion.$FLUXIONRevision" -- "$@" ); then @@ -121,7 +121,7 @@ while [ "$1" != "" ] && [ "$1" != "--" ]; do -n|--airmon-ng) readonly FLUXIONAirmonNG=1;; -m|--multiplexer) readonly FLUXIONTMux=1;; -b|--bssid) FluxionTargetMAC=$2; shift;; - -e|--essid) FluxionTargetSSID=$2; shift; + -e|--essid) FluxionTargetSSID=$2; # TODO: Rearrange declarations to have routines available for use here. FluxionTargetSSIDClean=$(echo "$FluxionTargetSSID" | sed -r 's/( |\/|\.|\~|\\)+/_/g'); shift;; -c|--channel) FluxionTargetChannel=$2; shift;;