From a39b6c05a60fff9355bbc139d27a495a2a53300d Mon Sep 17 00:00:00 2001 From: Usama Abdul Sattar Date: Thu, 1 Aug 2019 12:16:39 +0500 Subject: [PATCH] kill and restart network-manager --- fluxion.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fluxion.sh b/fluxion.sh index a55e3b3..5fdc034 100755 --- a/fluxion.sh +++ b/fluxion.sh @@ -4,6 +4,10 @@ # ================== < FLUXION Parameters > ================== # # ============================================================ # # Path to directory containing the FLUXION executable script. + +for program in "$(airmon-ng check | awk 'NR>6{print $2}')"; do + killall $program &> /dev/null + done readonly FLUXIONPath=$(dirname $(readlink -f "$0")) # Path to directory containing the FLUXION library (scripts). @@ -325,6 +329,7 @@ fluxion_shutdown() { # Only deallocate fluxion or airmon-ng created interfaces. if [[ "$interface" == "flux"* || "$interface" == *"mon"* || "$interface" == "prism"* ]]; then fluxion_deallocate_interface $interface + systemctl restart network-manager fi done fi