w flag improvements
parent
56bc8b23bf
commit
ca7030871f
5
wipri
5
wipri
|
@ -260,7 +260,7 @@ function maccheck() {
|
||||||
# w flag to mitigate wifi probe SSID leaks (seemed necessary - set it and forget it) ;)
|
# 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
|
# 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)
|
# 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() {
|
function watchdev() {
|
||||||
echo -e "${BLUE} Checking $netdev To Protect Against WiFi Saved SSID Probe Req Leaks${ENDCOLOR}\n"
|
echo -e "${BLUE} Checking $netdev To Protect Against WiFi Saved SSID Probe Req Leaks${ENDCOLOR}\n"
|
||||||
while :
|
while :
|
||||||
|
@ -272,9 +272,10 @@ function watchdev() {
|
||||||
if ["$dstatus" != "up" ]; then
|
if ["$dstatus" != "up" ]; then
|
||||||
echo -e "${GREEN}$netdev${ENDCOLOR} ${RED}NOT CONNECTED...${ENDCOLOR}\n" && sleep .5
|
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
|
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}"
|
echo -e "${GREEN}SUCCESSFULLY TURNED WIFI RADIO${ENDCOLOR} ${RED}OFF${ENDCOLOR}"
|
||||||
fi
|
fi
|
||||||
|
continue
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue