Allow to skip dependencies if required with --skip-dependencies
This commit is contained in:
parent
68a90dc684
commit
0523d1f6d6
14
fluxion.sh
14
fluxion.sh
|
@ -27,6 +27,9 @@ readonly FLUXIONRevision=11
|
||||||
# Declare window ration bigger = smaller windows
|
# Declare window ration bigger = smaller windows
|
||||||
FLUXIONWindowRatio=4
|
FLUXIONWindowRatio=4
|
||||||
|
|
||||||
|
# Allow to skip dependencies if required, not recommended
|
||||||
|
FLUXIONSkipDependencies=0
|
||||||
|
|
||||||
# ============================================================ #
|
# ============================================================ #
|
||||||
# ================= < Script Sanity Checks > ================= #
|
# ================= < Script Sanity Checks > ================= #
|
||||||
# ============================================================ #
|
# ============================================================ #
|
||||||
|
@ -80,7 +83,7 @@ source "$FLUXIONPath/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,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" -- "$@"
|
--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
|
||||||
|
@ -120,6 +123,7 @@ while [ "$1" != "" -a "$1" != "--" ]; do
|
||||||
-a|--attack) FluxionAttack=$2; shift;;
|
-a|--attack) FluxionAttack=$2; shift;;
|
||||||
--ratio) FLUXIONWindowRatio=$2; shift;;
|
--ratio) FLUXIONWindowRatio=$2; shift;;
|
||||||
--auto) readonly FLUXIONAuto=1;;
|
--auto) readonly FLUXIONAuto=1;;
|
||||||
|
--skip-dependencies) readonly FLUXIONSkipDependencies=1;;
|
||||||
esac
|
esac
|
||||||
shift # Shift new parameters
|
shift # Shift new parameters
|
||||||
done
|
done
|
||||||
|
@ -274,9 +278,11 @@ fluxion_startup() {
|
||||||
"fuser:psmisc" "killall:psmisc"
|
"fuser:psmisc" "killall:psmisc"
|
||||||
)
|
)
|
||||||
|
|
||||||
while ! installer_utils_check_dependencies requiredCLITools[@]; do
|
if [ $FLUXIONSkipDependencies != 1 ];then
|
||||||
installer_utils_run_dependencies InstallerUtilsCheckDependencies[@]
|
while ! installer_utils_check_dependencies requiredCLITools[@]; do
|
||||||
done
|
installer_utils_run_dependencies InstallerUtilsCheckDependencies[@]
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
echo -e "\n\n" # This echo is for spacing
|
echo -e "\n\n" # This echo is for spacing
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue