<?php
function error( $error = false )
{
}
$ii=0;
$handle = @fopen("links.txt", "r");
if ($handle) {
while (!feof($handle)) {
$buffer[$ii] = fgets($handle);
$ii++;
}
fclose($handle);
}
$lastt=count($buffer);
$link = $buffer[mt_rand(0,$lastt)];
$agents = file( "agents.txt" );
$proxys = file( "proxys.txt" );
$cagents = count( $agents );
$cproxys = count( $proxys );
$na = mt_rand( 0, $cagents - 1 );
$np = mt_rand( 0, $cproxys - 1 );
$user_agent=$agents[$na];
$proxy=$proxy[$np];
function FetchUrl($url, $postvars, $timeout){
sleep($timeout);
echo date("r")." fetching $url\r\n";
echo date("r")." $postvars\r\n";
$ch = curl_init();
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_PROXY, $proxy);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postvars);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT,15);
curl_setopt($ch, CURLOPT_ENCODING, 'gzip');
curl_setopt($ch, CURLOPT_COOKIEJAR, "c1.txt");
curl_setopt($ch, CURLOPT_COOKIEFILE, "c1.txt");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_AUTOREFERER, TRUE);
curl_setopt ($ch, CURLOPT_USERAGENT, $user_agent);
//curl_setopt($ch, CURLOPT_REFERER, $ref);
$result = curl_exec($ch);
curl_close($ch);
return $result;
}
$url = "http://browsershots.org/accounts/login/";
$postdata = "username=U_LOGIN&password=U_PASS";
$page = FetchUrl($url, $postdata, 3);
$url = "http://browsershots.org/";
$postdata = "url=".$link."&submit.x=2&submit.y=11&linux_dillo_0_8=on& linux_dillo_2_0=on&linux_dillo_2_1=on&linux_epipha ny_2_22=on&linux_firefox_1_0=on&linux_firefox_1_5= on&linux_firefox_2_0=on&linux_firefox_3_0=on&linux _firefox_3_1=on&linux_firefox_3_5=on&linux_flock_1 _2=on&linux_flock_2_0=on&linux_galeon_2_0=on&linux _iceape_1_0=on&linux_iceape_1_1=on&linux_iceweasel _2_0=on&linux_iceweasel_3_0=on&linux_kazehakase_0_ 5=on&linux_konqueror_3_5=on&linux_konqueror_4_2=on &linux_minefield_3_2=on&linux_minefield_3_6=on&lin ux_navigator_9_0=on&linux_opera_10_0=on&linux_oper a_9_63=on&linux_opera_9_64=on&linux_seamonkey_1_1= on&linux_seamonkey_2_0=on&linux_shiretoko_3_1=on&l inux_shiretoko_3_5=on&windows_avant_11_7=on&window s_chrome_0_2=on&windows_chrome_0_3=on&windows_chro me_0_4=on&windows_chrome_1_0=on&windows_chrome_2_0 =on&windows_chrome_3_0=on&windows_firefox_0_8=on&w indows_firefox_0_9=on&windows_firefox_1_0=on&windo ws_firefox_1_5=on&windows_firefox_2_0=on&windows_f irefox_3_0=on&windows_firefox_3_1=on&windows_firef ox_3_5=on&windows_flock_1_0=on&windows_flock_1_1=o n&windows_flock_1_2=on&windows_flock_2_0=on&window s_flock_2_5=on&windows_flock_3_0=on&windows_k-meleon_1_1=on&windows_k-meleon_1_5=on&windows_minefield_3_2=on&windows_min efield_3_6=on&windows_msie_4_0=on&windows_msie_5_0 =on&windows_msie_5_5=on&windows_msie_6_0=on&window s_msie_7_0=on&windows_msie_8_0=on&windows_navigato r_8_1=on&windows_navigator_9_0=on&windows_opera_0_ 27=on&windows_opera_10_0=on&windows_opera_7_0=on&w indows_opera_7_11=on&windows_opera_7_54=on&windows _opera_8_0=on&windows_opera_8_53=on&windows_opera_ 8_54=on&windows_opera_9_25=on&windows_opera_9_26=o n&windows_opera_9_27=on&windows_opera_9_50=on&wind ows_opera_9_51=on&windows_opera_9_52=on&windows_op era_9_60=on&windows_opera_9_61=on&windows_opera_9_ 62=on&windows_opera_9_63=on&windows_opera_9_64=on& windows_opera_9_80=on&windows_safari_3_0=on&window s_safari_3_2=on&windows_safari_4_0=on&windows_seam onkey_1_1=on&windows_seamonkey_2_0=on&windows_shir etoko_3_1=on&windows_shiretoko_3_5=on&bsd_dillo_2_ 0=on&bsd_firefox_2_0=on&bsd_galeon_2_0=on&bsd_kaze hakase_0_5=on&bsd_seamonkey_1_1=on&width=dontcare& bits_per_pixel=dontcare&javascript=dontcare&java=d ontcare&flash=dontcare";
$page = FetchUrl($url, $postdata, 3);
echo $page;
?>