This file contains 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 | |
echo -n "Enter Proxy Username: " | |
read PROXYUSER | |
echo -n "Enter Proxy Password: " | |
read PROXYPASS | |
echo -n "Enter Proxy Port (Default 9128): " | |
read PROXYPORT | |
DEFAULTNS=$(cat /etc/resolv.conf | gawk 'match($0, /nameserver\s([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)/, a) {print a[1]}') | |
echo -n "Enter nameserver from /etc/resolv.conf (Autodected $DEFAULTNS): " | |
read DNS |