sergey-scat/unicaps

Please add Custom2Captcha XEvil

Closed this issue · 7 comments

Please add me on Discord
Dmitry#3429

For more details & test environment

Just changing the 2Captcha URL doesn't work, it gives this error:
10/13/2022 12:09:33 PM: POST /in.php
10/13/2022 12:09:33 PM: Wrong API Key = [] rejected!
10/13/2022 12:09:33 PM: .\Lua\API\emulation.lua:32: attempt to compare number with nil

I don't have XEvil installed.
I can add it if you install XEvil on a server (with dedicated IP) and provide me with the URL.

Thx.
It seems that the 2captcha interface is not fully implemented in XEvil.
Can you switch to anti-captcha (in XEvil it's called "Antigate v2" or something like that)?

Done, when you implement it please make sure you can specify the base url =) thank you so much

XEvil works better through the Anti-Captcha interface (but, for me, only reCAPTCHA v2 it solves correctly... I have no idea why).
The following code can be used as a workaround:

from unicaps import CaptchaSolver, CaptchaSolvingService

# init Anti-captcha solver
solver = CaptchaSolver(CaptchaSolvingService.ANTI_CAPTCHA, 'c32c6a43debd428defa0dccee6ed22b7')

# change BASE_URL
solver._service.BASE_URL = 'http://95.216.229.102:666'

# get balance
print(f'Balance: {solver.get_balance()}')

# solve reCAPTCHA v2
solved = solver.solve_recaptcha_v2(
    site_key='6LfW6wATAAAAAHLqO2pb8bDBahxlMxNdo9g947u9',
    page_url='https://recaptcha-demo.appspot.com/recaptcha-v2-checkbox.php'
)
print(solved.solution.token)

Please try it and let me know if it works for you.

fuck yeah buddy will do

works :)

Ok, closing then