08, сентября, 2008
Not so long ago stumbled upon on the interesting project Lingvamaniya .
essence of it - the study of English words with one like RPG, otgadyvaya words you receive balls, you can spend on shmotki =) a draft Deduct that he paid for a comfortable game are asked ~ $ 5 per month.
nothing's whack factitious service, wanted to get into the first line of the rating that I managed a couple of minutes.
Issledovav service, I discovered that all the letters and the correct answers are transmitted in clear in xml packages. Nabrosav the following script, I quickly fell in the first place, and which remained for the duration of the entire PRO account.
[PHP]
php
set_time_limit (0);
ignore_user_abort (true);
/ / You have to do to indicate your cookie
$ cookie = "sid = 657637149459e4605136cd0a576ec0c2 ";
/ / And how much you want to earn points
$ getnum = 200;
function getpage ($ testhost, $ url)
(
В В В global $ cookie;
В $ socket = fsockopen ($ testhost, 80, $ errno, $ errstr, 30);
В В В if (! $ socket)
В В В В (
В В В В В echo ( "ERROR: ");
В В В В )
В В В else
В В В В (
В В В В В $ GET_query =
В В В В В "GET ". $ Url. "HTTP/1.0 r n ".
В В В В В "Accept: * / * r n ".
В В В В В "Accept-Language: ru; q = 0.9 r n ".
В В В В В "Accept-Charset: iso-8859-1, utf-8, utf-16, *; q = 0.1 r n ".
В В В В В "Proxy-Connection: Keep-Alive r n ".
В В В В В "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;. NET CLR 2.0.50727) r n ".
В В В В В "Refferer: http://linguamania.ru/game r n ".
В В В В В "X-Requested-With: XMLHttpRequest r n ".
В В В В В "Host: ". $ Testhost. " R n ".
В В В В В "Cookie: ". $ Cookie. " R n r n ";
В В В В В fwrite ($ socket, $ GET_query);
В В В В В while (! feof ($ socket))
В В В В В (
В В В В В В $ html_source .= (fgets ($ socket, 1024));
В В В В В )
В В В В )
В В В В return $ html_source;
)
В
for ($ a = 0; $ a <= $ getnum; $ a + +)
(
$ rand = rand (1111111111111111,9999999999999999);
$ quest = getpage ( "linguamania.ru ", "http://linguamania.ru/get_quest.php?0. ". $ rand);
preg_match ( "#
# Ui ", $ quest, $ kind);
preg_match ( "# word en = '(.*) 'ru # Ui ", $ quest, $ word);
$ rand = rand (1111111111111111,9999999999999999);
If ($ kind [1] == "test ")
getpage ( "linguamania.ru ", "/ store_quest_result.php? 0. ". $ rand. "& kind = test & data = & errors_count = 0 & time = 0");
Else
getpage ( "linguamania.ru ", "/ serv / store_quest_result.php? 0. ". $ rand. "& kind = ". $ kind [1]. "& data = ". $ word [ 1]. "& Errors_count = 0 & time = 0");
Sleep (1);
)
echo ( "Work Finished ... ");
?>
[/ PHP]
But in general, very positive project, the developers want to wish good luck and development project.