From cd55ebca8caabeed5c5565c0dbd6f00d31db09bf Mon Sep 17 00:00:00 2001 From: Matias Barcenas Date: Wed, 14 Mar 2018 15:17:41 -0500 Subject: [PATCH] Fixed potential issue caused by network-manager. When using multiple interfaces, the network manager was causing problems. Specifically, when attempting to use different master & monitor interfaces. --- attacks/Captive Portal/attack.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/attacks/Captive Portal/attack.sh b/attacks/Captive Portal/attack.sh index 90a0ace..d61d65d 100755 --- a/attacks/Captive Portal/attack.sh +++ b/attacks/Captive Portal/attack.sh @@ -1295,6 +1295,11 @@ stop_attack() { captive_portal_stop_interface + # Start the network-manager if it's disabled. + if ! systemctl status network-manager.service &> /dev/null; then + systemctl start network-manager.service + fi + CaptivePortalState="Stopped" } @@ -1305,6 +1310,11 @@ start_attack() { stop_attack + # Disable the network-manager if it's available. + if systemctl status network-manager.service &> /dev/null; then + systemctl stop network-manager.service + fi + captive_portal_start_interface echo -e "$FLUXIONVLine $CaptivePortalStartingDHCPServiceNotice"