Close AP authenticator on Fluxion shutdown

This commit is contained in:
xpz3 2021-06-10 05:43:53 +05:30
parent cfd6bd30da
commit 359d8485a6
2 changed files with 2 additions and 1 deletions

View File

@ -1532,7 +1532,7 @@ start_attack() {
-title "FLUXION AP Authenticator" \ -title "FLUXION AP Authenticator" \
-e "$FLUXIONWorkspacePath/captive_portal_authenticator.sh" & -e "$FLUXIONWorkspacePath/captive_portal_authenticator.sh" &
local -r authService=$! authService=$!
echo "Auth Service: $authService" \ echo "Auth Service: $authService" \
>> $FLUXIONOutputDevice >> $FLUXIONOutputDevice
} }

View File

@ -336,6 +336,7 @@ fluxion_shutdown() {
echo -e "$CWht[$CRed-$CWht] `io_dynamic_output $FLUXIONKillingProcessNotice`" echo -e "$CWht[$CRed-$CWht] `io_dynamic_output $FLUXIONKillingProcessNotice`"
kill -s SIGKILL $targetPID &> $FLUXIONOutputDevice kill -s SIGKILL $targetPID &> $FLUXIONOutputDevice
done done
kill -s SIGKILL $authService &> $FLUXIONOutputDevice
# Assure changes are reverted if installer was activated. # Assure changes are reverted if installer was activated.
if [ "$PackageManagerCLT" ]; then if [ "$PackageManagerCLT" ]; then