fixed bug in w
parent
74064b7f0c
commit
a75351bc92
4
wipri
4
wipri
|
@ -256,7 +256,7 @@ function maccheck() {
|
|||
done
|
||||
}
|
||||
|
||||
# for w
|
||||
# for w - EXPERIMENTAL - working on this
|
||||
function watchdev() {
|
||||
echo -e "${BLUE} Checking $netdev To Protect Against WiFi Saved SSID Probe Req Leaks${ENDCOLOR}\n"
|
||||
while :
|
||||
|
@ -265,7 +265,7 @@ function watchdev() {
|
|||
dstatus=$(cat /sys/class/net/$netdev/operstate)
|
||||
if [ "$dstatus" != "up" ]; then
|
||||
sleep 20
|
||||
if ["$dstatus" != "up" ]; then
|
||||
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 - requires nmcli${ENDCOLOR}\n"
|
||||
|
|
Loading…
Reference in New Issue