From 64c33d1f7d5e7f3e98c129d6a96abd7ba16d4463 Mon Sep 17 00:00:00 2001 From: RightToPrivacy Date: Tue, 20 Sep 2022 11:11:37 -0400 Subject: [PATCH] improved w --- wipri | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wipri b/wipri index 4ed2aaf..588f2c7 100644 --- a/wipri +++ b/wipri @@ -264,13 +264,13 @@ function maccheck() { function watchdev() { while : do - echo -e "${BLUE} Checking $netdev For Down Status To Prevent Saved SSID Leaks${ENDCOLOR}\n" + echo -e "${BLUE} Checking $netdev To Protect Against Saved SSID Leaks${ENDCOLOR}\n" sleep 400 # time period to wait between checks dstatus=$(cat /sys/class/net/$netdev/operstate) if [ "$dstatus" != "up" ]; then - echo -e "${GREEN}$netdev${ENDCOLOR} ${RED}NOT UP FOR TIMEOUT PERIOD...${ENDCOLOR}\n" && sleep .5 + echo -e "${GREEN}$netdev${ENDCOLOR} ${RED}NOT UP...${ENDCOLOR}\n" && sleep .5 echo -e "${BLUE}Turning WiFi Radio $netdev ${RED}OFF${ENDCOLOR} to prevent WiFi Probe Req SSID leaks${ENDCOLOR}\n" && sleep .5 - nmcli radio wifi off || echo -e "${RED}ERR FAILED TO DOWN${ENDCOLOR}\n" && exit + nmcli radio wifi off || echo -e "${RED}ERR FAILED TO TURN OFF RADIO${ENDCOLOR}\n" && continue echo -e "${GREEN}SUCCESSFULLY TURNED WIFI RADIO${ENDCOLOR} ${RED}OFF${ENDCOLOR}" fi done