2captcha integration

Ossy Uche

Client
Регистрация
20.02.2015
Сообщения
20
Благодарностей
1
Баллы
3
I will like to use 2captcha.comwhich is the cheapest captcha service, unfortunately it is not integrated into zennoposter by default. Can someone tell me how i can use it on zennoposter. They have some info and a module for zennoposter but i never got it to work. https://2captcha.com/support/faq/15/. Looking forward to your help?
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113

Ossy Uche

Client
Регистрация
20.02.2015
Сообщения
20
Благодарностей
1
Баллы
3
  • Спасибо
Реакции: LightWood

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
Most likely you changed something more than domain value :-)
Can you PM me exmple of file that you get after editing?
 

Ossy Uche

Client
Регистрация
20.02.2015
Сообщения
20
Благодарностей
1
Баллы
3
This is what i have:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<!--сервер антикапчи-->
<add key="server" value="RuCaptcha.com" />
<!--ваш captcha ключ-->
<add key="key" value="My Captcha KEY" /> взять из своего аккаунта на странице http://rucaptcha.com/setting
<!--phrase => 0 или 1 (0 по умолчанию, 1 помечает что у капчи 2-4 слова)-->
<add key="phrase" value="0" />
<!--regsense => 0 или 1 (0 по умолчанию, 1 помечает что текст капчи чувствителен к регистру)-->
<add key="regsense" value="0" />
<!--numeric => 0 или 1 или 2 (0 по умолчанию, 1 помечает что текст капчи состоит только из цифр, 2 помечает что на капче нет цифр)-->
<add key="numeric" value="0" />
<!--calc => 0 или 1 (0 по умолчанию, 1 помечает что цифры на капче должны быть сплюсованы)-->
<add key="calc" value="0" />
<!--min_len => 0..20 (0 по-умолчанию, помечает минимальную длину текста капчи)-->
<add key="min_len" value="0" />
<!--max_len => 0..20 (0 - без ограничений, помечает максимальную длину капчи)-->
<add key="max_len" value="0" />
<!--количество попыток проверки, каждая попытка осуществляется с интервалом в 10 секунд-->
<add key="connection_attempts" value="15" />
<!--сколько раз перепосылать капчу, полезно когда сервер перегружен-->
<add key="anti_captcha_tries" value="2" />
<!--default answer (ответ по умолчанию, полезно ставить не пустым, для сервисов, которые дают сбои на пустую капчу)-->
<add key="anti_captcha_default_answer" value="sorry" />
</appSettings>
</configuration>

I put my captcha key in the place that says "My Captcha key"
 

LexxWork

Client
Регистрация
31.10.2013
Сообщения
1 190
Благодарностей
786
Баллы
113
captcha.com api is a little different. the server MUST be 2captcha.com. read the api doc https://2captcha.com/setting
also post method should consist of method=post and submit=download and get the ID additional values
 

Ossy Uche

Client
Регистрация
20.02.2015
Сообщения
20
Благодарностей
1
Баллы
3

LexxWork

Client
Регистрация
31.10.2013
Сообщения
1 190
Благодарностей
786
Баллы
113
zennooster has the bug about post values
here's the post dump
POST http://2captcha.com/in.php HTTP/1.1
User-Agent: TubeCast v1.0
Accept: */*
Accept-Language: ru
Content-Type: multipart/form-data; boundary=8d22ee8fc394204
Host: 2captcha.com
Content-Length: 6688
Expect: 100-continue

--8d22ee8fc394204
Content-Disposition: form-data; name="method"

post
--8d22ee8fc394204
Content-Disposition: form-data; name="soft_id"

19
--8d22ee8fc394204
Content-Disposition: form-data; name="key"

9db360de8a224298bfbc823ed8062a5d
--8d22ee8fc394204
Content-Disposition: form-data; name="ScaleFactor"

10
--8d22ee8fc394204
Content-Disposition: form-data; name="MergeCaptchas"

False
--8d22ee8fc394204
Content-Disposition: form-data; name="LastMergedCaptcha"

False
--8d22ee8fc394204
Content-Disposition: form-data; name="file"; filename="Captcha.png"
Content-Type: image/png
here is what data zp must send from my conf file but doesn't
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<!--service server-->
<add key="server" value="2captcha.com" />
<!--your api key-->
<add key="key" value="9db360de8a224298bfbc823ed8062a5d" />
<!--phrase => 0 = 1 word (default value) 1 = CAPTCHA contains 2 words-->
<add key="phrase" value="0" />
<!--regsense => 0 = not case sensitive (default value) 1 = case sensitive-->
<add key="regsense" value="0" />
<!--numeric => 0 = not specified (default value) 1 = numeric CAPTCHA 2 = letters CAPTCHA 3 = either numeric or letters.-->
<add key="numeric" value="0" />
<!--calc => 0 = not specified (default value) 1 = math CAPTCHA (users are to perform calculation)-->
<add key="calc" value="0" />
<!--min_len => 0 = not specified (default value) 1..20 = minimal number of symbols in the CAPTCHA text-->
<add key="min_len" value="0" />
<!--max_len => 0 = not specified (default value) 1..20 = maximal number of symbols in the CAPTCHA text-->
<add key="max_len" value="0" />
<!--language => 0 = not specified (default value) 1 = Cyrillic CAPTCHA 2 = Latin CAPTCHA-->
<add key="language" value="0" />
<!--method => default post field for 2captcha.com don't delete or change them-->
<add key="method" value="post" />
<!--submit => default post field for 2captcha.com don't delete or change them-->
<add key="submit" value="download%20and%20get%20the%20ID" />
<!--checking the number of attempts, each attempt made at intervals of 10 seconds-->
<add key="connection_attempts" value="15" />
<!--how many times resent captcha useful when the server is overloaded-->
<add key="anti_captcha_tries" value="2" />
<!--default answer (the default answer, it is useful to put not empty, for services that give failures on empty captcha)-->
<add key="anti_captcha_default_answer" value="sorry" />
</appSettings>
</configuration>
there is the only the one solution to make what the servise want to send in the captcha action's additional parameters field like
key=value
all you need to do is to add
submit=download and get the ID
because the method=post is always present
also
you cant add the soft_id={your soft id} to make the money from your clients


here is the patched lib with disabled soft_id=19
 
Последнее редактирование:

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)