This is a simple script to verify a proxy
type8code0@core:~$ cat proxy-tester
echo -e "\nTest proxy 10.10.10.10:80"
curl echoip.net --proxy 10.10.10.10:80
echo -e "\n\nTest proxy 10.10.10.11:80"
curl echoip.net --proxy 10.10.10.11:80
echo -e "\n\nTest proxy 10.10.10.13:80"
curl echoip.net --proxy 10.10.10.13:80
echo -e "\n\nDone :)\n"
type8code0@core:~$
### Plan to improve the script.
This script is working just fine. The problem is every time I have a new proxy list, I have to update the "proxy-tester" file manually.
Is there any better way to improve this code whereby the script can read the "PROXY-LIST.txt" file and put these proxies and port numbers to the script?
PROXY-LIST.txt