Fixed conditional_bail bug not stopping attacks.

This commit is contained in:
Matias Barcenas 2017-12-05 21:20:20 -06:00
parent 413027e881
commit 2004fc1c87
1 changed files with 58 additions and 56 deletions

View File

@ -86,7 +86,8 @@ if [ -x "$FLUXIONPath/preferences.sh" ]; then source "$FLUXIONPath/preferences.s
########################################################################################
function fluxion_exitmode() {
if [ ! $FLUXIONDebug ]; then
if [ $FLUXIONDebug ]; then return 1; fi
fluxion_header
echo -e "$CWht[$CRed-$CWht]$CRed $FLUXIONCleanupAndClosingNotice$CClr"
@ -146,10 +147,9 @@ function fluxion_exitmode() {
echo -e "$CWht[$CGrn+$CWht] $CGrn$FLUXIONCleanupSuccessNotice$CClr"
echo -e "$CWht[$CGrn+$CWht] $CGry$FLUXIONThanksSupportersNotice$CClr"
sleep 2
sleep 3
clear
fi
exit
}
@ -161,8 +161,10 @@ function fluxion_conditional_clear() {
}
function fluxion_conditional_bail() {
echo "Something went wrong, whoops!"; sleep 5
if [ ! $FLUXIONDebug ]; then fluxion_exitmode; return 0; fi
echo ${1:-"Something went wrong, whoops! (report this)"}; sleep 5
if [ ! $FLUXIONDebug ]
then fluxion_handle_exit; return 1
fi
echo "Press any key to continue execution..."
read bullshit
}