From 6b266120d346dfd35dfd41a34c2c222665026ce8 Mon Sep 17 00:00:00 2001 From: Matias Barcenas Date: Sat, 2 Sep 2017 15:48:36 -0500 Subject: [PATCH] Added wireless AP service detection & start. --- attacks/Captive Portal/attack.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/attacks/Captive Portal/attack.sh b/attacks/Captive Portal/attack.sh index 3065fea..a482380 100755 --- a/attacks/Captive Portal/attack.sh +++ b/attacks/Captive Portal/attack.sh @@ -835,12 +835,16 @@ function captive_portal_set_routes() { function captive_portal_stop_interface() { captive_portal_unset_routes - ap_stop + if [ "$APRogueService" ] && interface_is_wireless "$WIAccessPoint"; then + ap_stop + fi } function captive_portal_start_interface() { - echo -e "$FLUXIONVLine $CaptivePortalStaringAPServiceNotice" - ap_start + if [ "$APRogueService" ] && interface_is_wireless "$WIAccessPoint"; then + echo -e "$FLUXIONVLine $CaptivePortalStaringAPServiceNotice" + ap_start + fi echo -e "$FLUXIONVLine $CaptivePortalStaringAPRoutesNotice" captive_portal_set_routes &