From 6cc7a3f87c96365837c07cb673906275e2599503 Mon Sep 17 00:00:00 2001 From: Matias Barcenas Date: Wed, 14 Mar 2018 14:04:44 -0500 Subject: [PATCH] Fixed bug with parameter loading. --- fluxion.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/fluxion.sh b/fluxion.sh index a90c1aa..ae3183f 100755 --- a/fluxion.sh +++ b/fluxion.sh @@ -81,15 +81,18 @@ source lib/Help.sh # =================== < Parse Parameters > =================== # # ============================================================ # if ! FLUXIONCLIArguments=$( - getopt --options="vdkrnmtbh:e:c:l:a:h:r" \ + getopt --options="vdkrnmtbhe:c:l:a:r" \ --longoptions="debug,version,killer,reloader,ratio,help,airmon-ng,multiplexer,target,test,bssid:,essid:,channel:,language:,attack:" \ --name="FLUXION V$FLUXIONVersion.$FLUXIONRevision" -- "$@" ); then echo -e "${CRed}Aborted$CClr, parameter error detected..."; exit 5 fi -AttackCLIArguments=${FLUXIONCLIArguments##*--} -readonly FLUXIONCLIArguments=${FLUXIONCLIArguments%%--*} +AttackCLIArguments=${FLUXIONCLIArguments##* -- } +readonly FLUXIONCLIArguments=${FLUXIONCLIArguments%%-- *} +if [ "$AttackCLIArguments" = "$FLUXIONCLIArguments" ]; then + AttackCLIArguments="" +fi # ============================================================ #