Fixed conditional_bail bug not stopping attacks.
This commit is contained in:
parent
413027e881
commit
2004fc1c87
12
fluxion.sh
12
fluxion.sh
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue