View Single Post
Old 12-30-2010, 09:51 AM  
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,588
probably something like this

Code:
#!/usr/bin/perl

use LWP::UserAgent;
use strict;
use warnings;

my $ua = LWP::UserAgent->new;
$ua->timeout(15);

open FILE, "<list.txt" or die $!;

while (my $line = <FILE>) {
    my $proxy = "http://".$line;
    $ua->proxy('http', $proxy);
    my $response = $ua->get('http://google.com');
    if ($response->is_success) {
        print $line;
    } else {
    }
}

print "\n[] Complete list!";

close(FILE);
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


My Cam Feeds Script / Gallery Scraper / WPXXX Theme / Free Templates
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote