From ca7030871feee79e4df76e4198eb838ea06b5b86 Mon Sep 17 00:00:00 2001 From: RightToPrivacy Date: Wed, 21 Sep 2022 21:28:14 -0400 Subject: [PATCH] w flag improvements --- wipri | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wipri b/wipri index 9d77ad1..d3e5877 100644 --- a/wipri +++ b/wipri @@ -260,7 +260,7 @@ function maccheck() { # w flag to mitigate wifi probe SSID leaks (seemed necessary - set it and forget it) ;) # This can be used in wipri command, or installed as wipri boot service # feel free to mix up different flags to run things how you like (don't forget the -d flag to set dev) -### NOTICE: if you use this w flag, be aware it turns wifi radio off if you aren't connected for 3min - simply re-enable it if needed +### NOTICE: if you use this w flag, be aware it turns wifi radio off if you aren't connected for x min - simply re-enable it if needed function watchdev() { echo -e "${BLUE} Checking $netdev To Protect Against WiFi Saved SSID Probe Req Leaks${ENDCOLOR}\n" while : @@ -272,9 +272,10 @@ function watchdev() { if ["$dstatus" != "up" ]; then echo -e "${GREEN}$netdev${ENDCOLOR} ${RED}NOT CONNECTED...${ENDCOLOR}\n" && sleep .5 echo -e "${BLUE}Turning WiFi Radio $netdev${ENDCOLOR} ${RED}OFF${ENDCOLOR} to prevent WiFi Probe Req SSID leaks${ENDCOLOR}\n" && sleep .5 - nmcli radio wifi off || echo -e "${RED}ERR FAILED TO TURN OFF RADIO${ENDCOLOR}\n" && continue + nmcli radio wifi off || echo -e "${RED}ERR FAILED TO TURN OFF RADIO${ENDCOLOR}\n" echo -e "${GREEN}SUCCESSFULLY TURNED WIFI RADIO${ENDCOLOR} ${RED}OFF${ENDCOLOR}" fi + continue fi done }