Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
попробуй не $c=rand(); а $c=rand(5,1000);
<?php
// The following code is required to properly run Xedant.com Human Emulator
require("../Templates/xweb_human_emulator.php");
$ac = "";
$nick = $submitter->generate_random_nick_name(9);
$name = $submitter->generate_random_name("RU");
$fname = $submitter->generate_random_second_name("RU");
$pass = $submitter->generate_random_nick_name(8);
$needproxy=true;
$proxies = file("C:\proxy.yandex_proxy.txt");
$proxycount=count($proxies);
// user agent data
$uagents=file("user-agent.txt");
$uacount=count($uagents);
$needua=true;
$connectname="all connections";
echo "Cêðèïò çàïóñòèëè ".date( 'H:i l d F', time())."<br>";
for($i=0; $i<$n ; $i++ )
{
$busy = false;
$rnumber=mt_rand(1000,9999);
// proxy & user agent
if ($needproxy)
{
$curproxy=$proxies[$rnumber % $proxycount];
$browser->enable_proxy($connectname,$curproxy);
// åñëè ñîåäèíåíèå íåâîçìîæíî ÷åðåç äàííûé ïðîêñè
if (!$browser->check_connection('http://www.yandex.ru',30))
{
echo "<br>Ñîåäèíåíèå ÷åðåç $curproxy íåâîçìîæíî ïðîáóåì åù¸ ðàç... <br>";
$i--;
continue;
}
} else
{
$browser->disable_proxy($connectname);
}
if ($needua)
{
$buf=$uagents[$rnumber % $uacount];
list($uaname,$uastr)=split(': ',rtrim($buf));
$browser->set_user_agent($uastr);
echo "<br> selected user agent: $uaname ($uastr)<br>";
}
$errorcode=0;
$browser->wait_for(2,1);
$browser->recreate();
$browser->clear_cash();
$browser->clear_history();
$browser->clear_address_bar_history();
$browser->clear_cookies("");
$browser->enable_quiet_regime("false");
$browser->enable_java_script("false");
// navigate
$browser->navigate("http://narod.yandex.ru");
// wait on browser
// æä¸ìñ...
// åñëè íåâîçìîæíî äîæäàòüñÿ ñòðàíèöû
if (!$browser->wait_for(60,1))
{
echo "<br> Íåâîçìîæíî ïåðåéòè íà êîðíåâóþ ñòðàíèöó.\n";
$errorcode=-1;
$app->quit();
}
$anchor->click_by_inner_text('Ñîçäàéòå ñâîé ñàéò',true);
$browser->wait_for(60,1);
$anchor->click_by_inner_text('Çàðåãèñòðèðîâàòüñÿ',true);
$browser->wait_for(60,1);
$input->set_value_by_name('iname',$name);
$browser->wait_for(60,1);
$input->set_value_by_name('fname',$fname);
$browser->wait_for(60,1);
$input->set_value_by_name('login',$nick);
$browser->wait_for(60,1);
$button->click_by_name('done');
$browser->wait_for(60,1);
$input->set_value_by_name('passwd',$pass);
$input->set_value_by_name('passwd2',$pass);
$listbox->select_name_by_inner_name('hintq','2');
$input->set_value_by_name('hinta','ôóíäþ');
$image->save_to_file_by_number(2,"C:/captcha.jpg");
$captcha= $image->recognize_by_anticaptcha("", "C:/captcha.jpg",$ac,"http://antigate.com/");
$input->set_value_by_name('code',$captcha);
$button->click_by_number('1');
$browser->wait_for(60,1);
$input->set_value_by_name('bday','1');
$input->set_value_by_name('byear','1988');
$browser->wait_for(60,1);
$button->click_by_number('0');
$browser->wait_for(60,1);
$element->click_on_element_by_inner_text('Ñîçäàòü');
$browser->wait_for(60,1);
$element->click_on_element_by_inner_text('Ìàñòåðñêàÿ');
$browser->wait_for(60,1);
if($anchor->click_by_inner_text('Âûõîä',true)){
$browser->wait_for(60,1);
if ($ftp->connect("ftp.narod.ru","$nick","$pass",21,true)){
if ($ftp->put_file("ftp.narod.ru","C:\index.html","index.html")){
$fp = fopen ("narod.txt", "a+");
fwrite ($fp, "ftp.narod.ru;$nick;$pass\r\n");
fclose ($fp);
}
$ftp->disconect("ftp.narod.ru");
}
}
}
// Quit
$app->quit();
?>