Created
July 1, 2018 17:18
-
-
Save sayhicoelho/0435e3bddfffb0bb7b1a550f3753f50c to your computer and use it in GitHub Desktop.
This snippet of code will change your MAC Address and try to connect to a service that blocks the user's MAC Address after some minutes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
declare -i count=0; | |
while true; do | |
count=count+1; | |
now=$(date +"%d/%m/%y %T"); | |
echo "Execução de número "$count; | |
echo "Iniciado em: $(tput setaf 2)"$now"$(tput sgr0)"; | |
echo ; | |
nmcli d disconnect wlan0 | |
ifconfig wlan0 down | |
macchanger -r wlan0 | |
ifconfig wlan0 up | |
nmcli d connect wlan0 | |
DETECTED_MAC_ADDRESS=$(ifconfig wlan0 2>/dev/null|awk '/HWaddr/ {print $5}') | |
xdg-open "http://autenticador.olalink.com.br/login?dst=&username=T-"$DETECTED_MAC_ADDRESS | |
echo ; | |
expire=$(date --date='+30 minutes' +"%d/%m/%y %T"); | |
echo "Expira em: $(tput setaf 5)"$expire"$(tput sgr0)"; | |
sleep 1810; | |
clear; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment