Corrected ratio parameter.

This commit is contained in:
Matias Barcenas 2018-03-14 14:07:13 -05:00
parent 6cc7a3f87c
commit d9088b76ce
1 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ source lib/Help.sh
# ============================================================ # # ============================================================ #
if ! FLUXIONCLIArguments=$( if ! FLUXIONCLIArguments=$(
getopt --options="vdkrnmtbhe:c:l:a: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,help,airmon-ng,multiplexer,target,test,bssid:,essid:,channel:,language:,attack:,ratio:" \
--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
@ -113,7 +113,6 @@ while [ "$1" != "" -a "$1" != "--" ]; do
-n|--airmon-ng) readonly FLUXIONAirmonNG=1;; -n|--airmon-ng) readonly FLUXIONAirmonNG=1;;
-m|--multiplexer) readonly FLUXIONTMux=1;; -m|--multiplexer) readonly FLUXIONTMux=1;;
-b|--bssid) FluxionTargetMAC=$2; shift;; -b|--bssid) FluxionTargetMAC=$2; shift;;
--ratio) FLUXIONWindowRatio=$2;shift;;
-e|--essid) FluxionTargetSSID=$2; -e|--essid) FluxionTargetSSID=$2;
FluxionTargetSSIDClean=$( FluxionTargetSSIDClean=$(
echo "$FluxionTargetSSID" | sed -r 's/( |\/|\.|\~|\\)+/_/g' echo "$FluxionTargetSSID" | sed -r 's/( |\/|\.|\~|\\)+/_/g'
@ -122,6 +121,7 @@ while [ "$1" != "" -a "$1" != "--" ]; do
-c|--channel) FluxionTargetChannel=$2; shift;; -c|--channel) FluxionTargetChannel=$2; shift;;
-l|--language) FluxionLanguage=$2; shift;; -l|--language) FluxionLanguage=$2; shift;;
-a|--attack) FluxionAttack=$2; shift;; -a|--attack) FluxionAttack=$2; shift;;
--ratio) FLUXIONWindowRatio=$2;shift;;
esac esac
shift # Shift new parameters shift # Shift new parameters
done done