diff --git a/README.md b/README.md index a4e24d4..60ec78e 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,8 @@ Above Gitea Onion location is the best way to file issues (I check above daily, #### REQUIREMENTS (AS OF THIS VERSION) +LINUX DEVICE (with the following): + * wireless-tools (for the signal related flags) * systemd (only needed if you wish to automate custom flags starting at boot using install.sh) @@ -34,7 +36,7 @@ Just run the install.sh and answer the simple questions to let wipri take care o * NEW * wipri-eth0.service, wipri-eth0-usb.service are additional example service files helping you manage multiple devices. Instructions provided within .service files -* NEW * the -w flag (optional) allows you to leave home anytime and wipri will automatically turn off radio to prevent (potential) leaks once you are no longer within range of your saved networks (to prevent SSID leaks) +* NEW * the -w flag (optional) automatically turns off wifi radio when you leave your network range to prevent saved SSID / identifier leaks (use the -w flag anytime (requires nmcli), either by itself (always use -d flag to set device), or combined with other flags [like -p, -m, -r, -i, etc]) @@ -117,7 +119,7 @@ Questions about wipri, wipri-list, leave a comment, Or, Send An Email: righttopr ### USE: -wipri -d [device] -r [randomizes mac continually changing times/addresses] -a [continually randomize MAC, hostname, signal variations] -m [Static MAC] -i [new MAC identity] -h [rand hostname] -H [restore prev hostname] -s [random signals] -A [randomized WiFi Network SSID Change: optional netcat notification of new names- add ip address to $ncnotify] +wipri -d [device] -w [automatically turn wifi radio off anytime you leave home] -r [randomizes mac continually changing times/addresses] -a [continually randomize MAC, hostname, signal variations] -m [Static MAC] -i [new MAC identity] -h [rand hostname] -H [restore prev hostname] -s [random signals] -A [randomized WiFi Network SSID Change: optional netcat notification of new names- add ip address to $ncnotify] --- @@ -125,7 +127,7 @@ wipri -d [device] -r [randomizes mac continually changing times/addresses] -a [c -d sets your device (use this flag always). - -w optional flag helps prevent SSID leaks (saved SSID's) - by turning off wifi radio when you leave your network area (optional) + -w turn wifi radio off when outside your home automatically to prevent saved SSID's and other identifer leaks -r continually randomizes your mac address at randomly generated, continually changing random MAC addresses/times. diff --git a/wipri b/wipri index a8d9529..9d77ad1 100644 --- a/wipri +++ b/wipri @@ -268,10 +268,13 @@ function watchdev() { 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...${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 TURN OFF RADIO${ENDCOLOR}\n" && continue - echo -e "${GREEN}SUCCESSFULLY TURNED WIFI RADIO${ENDCOLOR} ${RED}OFF${ENDCOLOR}" + sleep 20 + 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 + echo -e "${GREEN}SUCCESSFULLY TURNED WIFI RADIO${ENDCOLOR} ${RED}OFF${ENDCOLOR}" + fi fi done }