
26.09.2009, 09:43
|
|
Постоянный
Регистрация: 02.03.2008
Сообщений: 893
С нами:
9574565
Репутация:
712
|
|
Пример livejournal.com
PHP код:
$reg = /* страница регистрации с капчей */
preg_match('#challenge\?k=(.*?)"#i',$reg,$captcha);
preg_match('#th" value="(.*?)"#i',$reg,$lj_form_auth);
$reg = post('http://api.recaptcha.net/challenge?k='.$captcha[1],null,'https://www.livejournal.com/',$proxy[$r]);
preg_match('#\'(.*?)\'#i',$reg,$captcha);
/* сохраняем картинку */
file_put_contents('captcha.jpg', post('http://api.recaptcha.net/image?c='.$captcha[1],null,'https://www.livejournal.com/',$proxy[$r]));
/* распознаём её */ $text=recognize(getcwd()."/captcha.jpg",$apikey,false);
/* geforse.name */
|
|
|