El codigo
Código
#!usr/bin/perl #Proxy Tester 0.5 #Coded By Doddy H use LWP::UserAgent; my $nave = LWP::UserAgent->new(); $nave->timeout(5); $nave->agent( "Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.8.1.12) Gecko/20080201Firefox/2.0.0.12" ); while (1) { head(); if ( $op eq "1" ) { if ( -f $file ) { my @words = <FILE>; close FILE; my @proxies = repes(@words); my $cont = "0"; for (@proxies) { if ( testnow($_) ) { $cont++; } } <stdin>; } else { copyright(); } } if ( $op eq "2" ) { my @uno = getproxys(); my @dos = getxroxy(); my @tres = proxyip(); my @cuatro = proxylist(); my @cinco = proxies(); #big list my @total = ( @uno, @dos, @tres, @cuatro, @cinco ); my $cont = "0"; for (@total) { if ( testnow($_) ) { $cont++; } } <stdin>; } if ( $op eq "3" ) { copyright(); } } copyright(); sub testnow { my $pro; my $host; my $port; my $country; my $save; my $test_proxy = LWP::UserAgent->new(); $test_proxy->timeout(5); $test_proxy->agent( "Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.8.1.12) Gecko/20080201Firefox/2.0.0.12" ); if ( $ver =~ /(.*):(.*)/ ) { ( $host, $port, $country ) = ( $1, $2, "Unknown" ); $save = $host . ":" . $port; } if ( $ver =~ /(.*):(.*):(.*)/ ) { ( $host, $port, $country ) = ( $1, $2, $3 ); $save = $host . ":" . $port . ":" . $country; } my $pro = $host . ":" . $port; $test_proxy->proxy( "http", "http://" . $pro ); my $code = $test_proxy->get("http://www.whatismyip.com/")->content; if ( $code =~ /Your IP Address Is/ ) { savefile( "proxy-founds.txt", $save ); return true; } } sub getproxys { my @founds; my @volver; for my $num ( 1 .. 5 ) { my $code = toma( "http://www.proxys.com.ar/index.php?act=list&port=&type=&country=&page=$num" ); while ( $code =~ /<tr class="cells" onmouseover="this.className='cells2'" onmouseout="this.className='cells'">(.*?)<\/tr>/sig ) { my $porcion = $1; } } } my @volver = repes(@founds); } sub getxroxy { my @founds_final; my @founds; for my $num ( 0 .. 26 ) { my $code = toma( "http://www.xroxy.com/proxylist.php?port=&type=&ssl=&country=&latency=1000&reliability=&sort=reliability&desc=true&pnum=$num" ); while ( $code =~ /proxy:name=XROXY proxy&host=(.*?)&port=(.*?)¬es=(.*?)&/sig ) { my ( $ip, $port, $pais ) = ( $1, $2, $3 ); $port =~ s/&isSocks=true//sig; $port =~ s/&socksversion=4a//sig; } } my @founds_final = repes(@founds); } sub proxies { my @founds_final; my @founds; for my $i ( 1 .. 10 ) { my $code = toma( "http://proxies.my-proxy.com/proxy-list-" . $i . ".html" ); my @found = $code =~ m/(\d{1,3}[.]\d{1,3}[.]\d{1,3}[.]\d{1,3}:\d+)/g; for (@found) { } } my @founds_final = repes(@founds); } sub proxyip { my @founds_final; my @founds; my $code = toma("http://proxy-ip-list.com/free-usa-proxy-ip.html"); if ( $code =~ /<tbody class="table_body">(.*?)<\/table>/sig ) { my $codedos = $1; while ( $codedos =~ /<tr><td>(.*?)<\/td><td>(.*?)<\/td><td>(.*?)<\/td><td>(.*?)<\/td><td>(.*?)<\/td><\/tr>/mig ) { my ( $ip, $pais ) = ( $1, $5 ); } } my @founds_final = repes(@founds); } sub proxylist { my @founds_final; my @founds; my $code = toma("http://www.proxylist.net/"); while ( $code =~ /<tr><td><a href="(.*?)">(.*?)<\/a><\/td><td><a href="(.*?)">(.*?)<\/a><\/td>/mig ) { my ( $ip, $pais ) = ( $2, $4 ); } my @founds_final = repes(@founds); } sub head { @@@@@ @@@@@ @ @ @ @ @ @ @ @ @ @ @@ @@@ @ @ @ @ @ @@@ @@ @@ @@@ @@ @@@@@ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @@ @ @ @ @@@@@ @ @ @@@@@ @ @ @ @ @ @@ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @@ @ @ @ @ @ @ @ @ @ @ @ @@@ @ @ @ @ @@@ @@ @ @@@ @ @ @@ [++] Options [+] 1 : Load wordlist [+] 2 : Check Online [+] 3 : Exit ); } sub copyright { <stdin>; } sub savefile { close SAVE; } sub repes { my @limpio; foreach $test (@_) { } } sub toma { } #The End ?