Bash function for automatic DNS activation of 403.online site
403() {
local current_dns_state=$(scutil --dns | grep "10.202.10.102" | awk '{print $3}')
if [ "$current_dns_state" != "" ]; then
echo "YOUR_PASSWORD" | sudo -S networksetup -setdnsservers Wi-Fi Empty
echo "DNS has been disabled."
else
echo "YOUR_PASSWORD" | sudo -S networksetup -setdnsservers Wi-Fi 10.202.10.102 10.202.10.202
echo "DNS has been enabled."