Skip to content

Instantly share code, notes, and snippets.

@jq2
Created March 16, 2020 04:17
Show Gist options
  • Save jq2/1654401eca326b0b1d2a9b0170fe2037 to your computer and use it in GitHub Desktop.
Save jq2/1654401eca326b0b1d2a9b0170fe2037 to your computer and use it in GitHub Desktop.
get-proxies.sh - # Get more HTTP proxies from multiple sources.
#!/bin/bash
# Date: Wed 11 Mar 2020
# Description: Simple proxy finder...
# Dependencies/Requirements: bash 4.x, python 3.x, pup latest version...
# @author: Dan Morris | A.K.A (jq2).
# Usage: ./main.sh {1..100} ;
target_link="https://www.sslproxies.org/"
curl -sSL "$target_link" -o sslproxies.org.html
for idx; ## Change the value from 30 to 100 to obtain all 100 Proxy/IP_ADDRESS from the website: 'www.sslproxies.org'.
do
## echo "Index: $idx"
ip_address=$(cat sslproxies.org.html | pup "#proxylisttable > tbody > tr:nth-child($idx) > td:nth-child(1) text{}");
port_number=$(cat sslproxies.org.html | pup "#proxylisttable > tbody > tr:nth-child($idx) > td:nth-child(2) text{}");
echo "$ip_address:$port_number";
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment