#!/bin/bash read -p "P: " -s p printf "$p" | openssl sha1 echo while true do echo "Attempting login..." curl -sL "https://wlc.company.com/login.html" -d "buttonClicked=4" -d "err_flag=0" -d "err_msg=" -d "info_flag=0" -d "info_msg=" -d "redirect_url=" -d "username=$USER" -d "password=$p" > /tmp/wifi.log 2>&1 sleep 60 done
[…] Auto WiFi Login Script (Bash) […]
[…] WiFi Login (Bash) […]