Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- $proxylist = curl_init();
- curl_setopt($proxylist, CURLOPT_URL, "https://www.torvpn.com/en/proxy-list");
- curl_setopt($proxylist, CURLOPT_RETURNTRANSFER, 1);
- $response = curl_exec($proxylist);
- preg_match_all('/<td><img src="(.*?)" alt="IP address" \/><\/td>
- <td>(.*?)<\/td>/s', $response, $matches);
- foreach ($matches[1] as $image) {
- foreach ($matches[2] as $port) {
- $ip = imagecreatefrompng($image);
- imagecolortransparent($ip, imagecolorat($ip, 0, 0));
- #############################################
- echo "$ip:$port<br>";
- ############################################
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement