From e054660195206bd8a52261e3ab5dc541dfaef79b Mon Sep 17 00:00:00 2001 From: deltaxflux Date: Tue, 14 Aug 2018 12:11:37 +0200 Subject: [PATCH] Fluxion 5.2: - skip dependencies by default - add router.sh --- fluxion.sh | 5 +++-- misc/router.sh | 11 +++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100755 misc/router.sh diff --git a/fluxion.sh b/fluxion.sh index 64d055a..ab6602a 100755 --- a/fluxion.sh +++ b/fluxion.sh @@ -22,13 +22,13 @@ readonly FLUXIONNoiseFloor=-90 readonly FLUXIONNoiseCeiling=-60 readonly FLUXIONVersion=5 -readonly FLUXIONRevision=1 +readonly FLUXIONRevision=2 # Declare window ration bigger = smaller windows FLUXIONWindowRatio=4 # Allow to skip dependencies if required, not recommended -FLUXIONSkipDependencies=0 +FLUXIONSkipDependencies=1 # ============================================================ # # ================= < Script Sanity Checks > ================= # @@ -121,6 +121,7 @@ while [ "$1" != "" ] && [ "$1" != "--" ]; do -c|--channel) FluxionTargetChannel=$2; shift;; -l|--language) FluxionLanguage=$2; shift;; -a|--attack) FluxionAttack=$2; shift;; + -i|--install) FLUXIONSkipDependencies=0; shift;; --ratio) FLUXIONWindowRatio=$2; shift;; --auto) readonly FLUXIONAuto=1;; --skip-dependencies) readonly FLUXIONSkipDependencies=1;; diff --git a/misc/router.sh b/misc/router.sh new file mode 100755 index 0000000..57653a5 --- /dev/null +++ b/misc/router.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +# Get arguments +if ! CLiArguments=$(getopt --options="hu" --name "FLUXION V1.0" -- "$@");then + echo -e "\033[31mParameter error detected" + exit 1 +fi + +eval set -- "$CLiArguments" + +while [ "$1" !? "" ] && [ "$1" != "--" ]