Fixed bug with parameter loading.
This commit is contained in:
parent
fe2618e4c1
commit
6cc7a3f87c
|
@ -81,15 +81,18 @@ source lib/Help.sh
|
||||||
# =================== < Parse Parameters > =================== #
|
# =================== < Parse Parameters > =================== #
|
||||||
# ============================================================ #
|
# ============================================================ #
|
||||||
if ! FLUXIONCLIArguments=$(
|
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:" \
|
--longoptions="debug,version,killer,reloader,ratio,help,airmon-ng,multiplexer,target,test,bssid:,essid:,channel:,language:,attack:" \
|
||||||
--name="FLUXION V$FLUXIONVersion.$FLUXIONRevision" -- "$@"
|
--name="FLUXION V$FLUXIONVersion.$FLUXIONRevision" -- "$@"
|
||||||
); then
|
); then
|
||||||
echo -e "${CRed}Aborted$CClr, parameter error detected..."; exit 5
|
echo -e "${CRed}Aborted$CClr, parameter error detected..."; exit 5
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AttackCLIArguments=${FLUXIONCLIArguments##*--}
|
AttackCLIArguments=${FLUXIONCLIArguments##* -- }
|
||||||
readonly FLUXIONCLIArguments=${FLUXIONCLIArguments%%--*}
|
readonly FLUXIONCLIArguments=${FLUXIONCLIArguments%%-- *}
|
||||||
|
if [ "$AttackCLIArguments" = "$FLUXIONCLIArguments" ]; then
|
||||||
|
AttackCLIArguments=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# ============================================================ #
|
# ============================================================ #
|
||||||
|
|
Loading…
Reference in New Issue