From 0523d1f6d64a7e0a2c04b95a6bba7084956ea2ae Mon Sep 17 00:00:00 2001 From: deltaxflux Date: Wed, 30 May 2018 00:47:13 +0200 Subject: [PATCH] Allow to skip dependencies if required with --skip-dependencies --- fluxion.sh | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/fluxion.sh b/fluxion.sh index b4f704a..de677b9 100755 --- a/fluxion.sh +++ b/fluxion.sh @@ -27,6 +27,9 @@ readonly FLUXIONRevision=11 # Declare window ration bigger = smaller windows FLUXIONWindowRatio=4 +# Allow to skip dependencies if required, not recommended +FLUXIONSkipDependencies=0 + # ============================================================ # # ================= < Script Sanity Checks > ================= # # ============================================================ # @@ -80,7 +83,7 @@ source "$FLUXIONPath/lib/Help.sh" # ============================================================ # if ! FLUXIONCLIArguments=$( getopt --options="vdkrnmtbhe:c:l:a:r" \ - --longoptions="debug,version,killer,reloader,help,airmon-ng,multiplexer,target,test,auto,bssid:,essid:,channel:,language:,attack:,ratio:" \ + --longoptions="debug,version,killer,reloader,help,airmon-ng,multiplexer,target,test,auto,bssid:,essid:,channel:,language:,attack:,ratio,skip-dependencies" \ --name="FLUXION V$FLUXIONVersion.$FLUXIONRevision" -- "$@" ); then echo -e "${CRed}Aborted$CClr, parameter error detected..."; exit 5 @@ -120,6 +123,7 @@ while [ "$1" != "" -a "$1" != "--" ]; do -a|--attack) FluxionAttack=$2; shift;; --ratio) FLUXIONWindowRatio=$2; shift;; --auto) readonly FLUXIONAuto=1;; + --skip-dependencies) readonly FLUXIONSkipDependencies=1;; esac shift # Shift new parameters done @@ -274,9 +278,11 @@ fluxion_startup() { "fuser:psmisc" "killall:psmisc" ) - while ! installer_utils_check_dependencies requiredCLITools[@]; do - installer_utils_run_dependencies InstallerUtilsCheckDependencies[@] - done + if [ $FLUXIONSkipDependencies != 1 ];then + while ! installer_utils_check_dependencies requiredCLITools[@]; do + installer_utils_run_dependencies InstallerUtilsCheckDependencies[@] + done + fi echo -e "\n\n" # This echo is for spacing }