Skip to content

Free ReCaptcha v2 and v3 breaker

2»

Comments

  • rastarrrastarr Thailand
    Deeeeeeee said:
    Hi. This is an interesting development. Thank you, @rastarr!!

    I've followed the installation directions here. I am unsure about one part:

    I see "server": "ht tp://p.webshare.io:80",
                "username": "PROXY-USERNAME",
                "password": "PROXY-PASSWORD"

    I use proxies for solving Recaptcha2 and 3 from Asia Virtual Solutions with Xevil.  Must I get proxies from webshare or a service like it? @royalmice, is there a way to use the ones that you provide?

    I'm guessing that the webshare service is a gateway with rotating proxies?

    Thanks ahead of time for any help...

    Without changing the proxy info, CB gets this "Error solving v3 captcha: 'PlainTextResponse' object has no attribute 'startswith'" in response to testing Recaptcha3 with the default test details provided with GSA CB.
    It's only Recaptchav2 that's using proxies. v3 doesn't need them.
    Yes, I use Webshare which provides a gateway with rotating proxies.

    The 'PlainTextResponse' thing is a string manipulation issue but has no bearing on actual captcha solving so don't worry about it.
    For a v3 test, use https://antcpt.com/score_detector/ as the URL which usually worked for me
    v2 I was testing with https://recaptcha-demo.appspot.com/recaptcha-v2-checkbox.php
    The site key is irrelevant as the script does it's own thing and doesn't need these parameters to be passed.
    Thanked by 1Deeeeeeee
  • DeeeeeeeeDeeeeeeee the Americas
    edited March 2023
    rastarr said:

    For a v3 test, use https://antcpt.com/score_detector/ as the URL which usually worked for me
    v2 I was testing with https://recaptcha-demo.appspot.com/recaptcha-v2-checkbox.php
    The site key is irrelevant as the script does it's own thing and doesn't need these parameters to be passed.
    Hmmm...I seem to only get CAPTCHA_UNSOLVABLE and the log pane in GSA CB indicates 2Captcha API with IP was attempted unsuccessfully with same message as the pop-up window.  Where in the code does this call on CB to do any actual solving? Is that the compiled file that does that part?

    When I go into the command prompt, I see that it's getting 200 responses. Everything seems to be working.
    This is the case for both recaptcha 2 and 3:
    =========================== logs ===========================<br>navigating to "http://recaptcha-demo.appspot.com/recaptcha-v2-checkbox.php", waiting until "networkidle"<br>============================================================<br>INFO:&nbsp;&nbsp;&nbsp;&nbsp; 127.0.0.1:52852 - "GET /res.php?key=GSA%21%21%21%21%21%21%21%21%21%21%21&action=get&id=1be2bb8f-a77c-4908-814f-5e665e00659d HTTP/1.1" 200 OK<br>INFO:&nbsp;&nbsp;&nbsp;&nbsp; 127.0.0.1:52857 - "POST /in.php HTTP/1.1" 200 OK<br>INFO:&nbsp;&nbsp;&nbsp;&nbsp; 127.0.0.1:52865 - "GET /res.php?key=GSA%21%21%21%21%21%21%21%21%21%21%21&action=get&id=e5f76817-e740-42fd-9fda-d5cb6230ea61 HTTP/1.1" 200 OK<br>INFO:&nbsp;&nbsp;&nbsp;&nbsp; 127.0.0.1:53885 - "GET /res.php?key=GSA%21%21%21%21%21%21%21%21%21%21%21&action=get&id=e5f76817-e740-42fd-9fda-d5cb6230ea61 HTTP/1.1" 200 OK<br>INFO:&nbsp;&nbsp;&nbsp;&nbsp; 127.0.0.1:54721 - "GET /res.php?key=GSA%21%21%21%21%21%21%21%21%21%21%21&action=get&id=e5f76817-e740-42fd-9fda-d5cb6230ea61 HTTP/1.1" 200 OK<br>v2 URL|http://recaptcha-demo.appspot.com/recaptcha-v2-checkbox.php<br>Error solving v2 captcha: 'PlainTextResponse' object has no attribute 'startswith'<br>INFO:&nbsp;&nbsp;&nbsp;&nbsp; 127.0.0.1:55485 - "GET /res.php?key=GSA%21%21%21%21%21%21%21%21%21%21%21&action=get&id=e5f76817-e740-42fd-9fda-d5cb6230ea61 HTTP/1.1" 200 OK
  • DeeeeeeeeDeeeeeeee the Americas
    Is this just a framework for integrating our own solver to work with GSA Captcha Breaker, or does this work on it own?

    It appears there's no logic file to do any of the actual solving. Did I miss a step?

    Thanks...
  • rastarrrastarr Thailand
    Deeeeeeee said:
    Is this just a framework for integrating our own solver to work with GSA Captcha Breaker, or does this work on it own?

    It appears there's no logic file to do any of the actual solving. Did I miss a step?

    Thanks...
    sounds like you aren't connected to the solvers websocket. maybe change both mentions of port 8000 to something else like 9000
    I built this primarily for GSA though another program should be able to use it too, provided it follows the 2captcha protocols
    the solving is done inside the Python script
  • daviddig1daviddig1 San Antonio, TX
    @Sven @rastarr:
    Upon reading this as well as doing some digging, I did find this:
    https://sourceforge.net/projects/goodbyecatpcha/

    Any chance we could integrate with GSA's software? I would especially love to see this software, your suggestion or anything else integrated effectively with "Website Contact"
  • SvenSven www.GSA-Online.de
    @daviddig1 I think this is way too old to be of any use now.
  • DeeeeeeeeDeeeeeeee the Americas
    edited April 2023
    Just getting back to this after a break...

    I changed the port both in the GSA CB webserver 2captcha settings, as well as entered this at command prompt: uvicorn _capv2v3:app --port 9321  --workers 8   to reflect the port I am attempting to use.

    Are these the only two places I needed to change?

    Trying to run this again now, I get this errmsg: OSError: [WinError 10022] An invalid argument was supplied

    Does anyone know what might be of issue? Thanks...ahead of time.


    \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

    This is what was returned, in its entirety:

    <i>C:\Users\potat\recaptcha\_capv2v3>uvicorn _capv2v3:app --port 9321&nbsp; --workers 8</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Uvicorn running on ←[1mhttp://127.0.0.1:9321←[0m (Press CTRL+C to quit)</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Started parent process [←[36m←[1m37872←[0m]</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Started server process [←[36m50400←[0m]</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Started server process [←[36m1324←[0m]</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Started server process [←[36m62204←[0m]</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Waiting for application startup.</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Started server process [←[36m17772←[0m]</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Started server process [←[36m12808←[0m]</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Waiting for application startup.</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Waiting for application startup.</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Started server process [←[36m28008←[0m]</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Application startup complete.</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Waiting for application startup.</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Started server process [←[36m59364←[0m]</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Waiting for application startup.</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Application startup complete.</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Started server process [←[36m24956←[0m]</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Application startup complete.</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Waiting for application startup.</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Waiting for application startup.</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Application startup complete.</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Application startup complete.</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Waiting for application startup.</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Application startup complete.</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Application startup complete.</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Application startup complete.</i><br><i>←[31mERROR←[0m:&nbsp;&nbsp;&nbsp; Traceback (most recent call last):</i><br><i>&nbsp; File "C:\Users\potat\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 190, in run</i><br><i>&nbsp;&nbsp;&nbsp; return runner.run(main)</i><br><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ^^^^^^^^^^^^^^^^</i><br><i>&nbsp; File "C:\Users\potat\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 118, in run</i><br><i>&nbsp;&nbsp;&nbsp; return self._loop.run_until_complete(task)</i><br><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^</i><br><i>&nbsp; File "C:\Users\potat\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 653, in run_until_complete</i><br><i>&nbsp;&nbsp;&nbsp; return future.result()</i><br><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ^^^^^^^^^^^^^^^</i><br><i>&nbsp; File "C:\Users\potat\AppData\Local\Programs\Python\Python311\Lib\site-packages\uvicorn\server.py", line 76, in serve</i><br><i>&nbsp;&nbsp;&nbsp; await self.startup(sockets=sockets)</i><br><i>&nbsp; File "C:\Users\potat\AppData\Local\Programs\Python\Python311\Lib\site-packages\uvicorn\server.py", line 127, in startup</i><br><i>&nbsp;&nbsp;&nbsp; server = await loop.create_server(</i><br><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ^^^^^^^^^^^^^^^^^^^^^^^^^</i><br><i>&nbsp; File "C:\Users\potat\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 1547, in create_server</i><br><i>&nbsp;&nbsp;&nbsp; server._start_serving()</i><br><i>&nbsp; File "C:\Users\potat\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 315, in _start_serving</i><br><i>&nbsp;&nbsp;&nbsp; sock.listen(self._backlog)</i><br><i>OSError: [WinError 10022] An invalid argument was supplied</i><br><br><i>During handling of the above exception, another exception occurred:</i><br><br><i>Traceback (most recent call last):</i><br><i>&nbsp; File "C:\Users\potat\AppData\Local\Programs\Python\Python311\Lib\site-packages\starlette\routing.py", line 686, in lifespan</i><br><i>&nbsp;&nbsp;&nbsp; await receive()</i><br><i>&nbsp; File "C:\Users\potat\AppData\Local\Programs\Python\Python311\Lib\site-packages\uvicorn\lifespan\on.py", line 139, in receive</i><br><i>&nbsp;&nbsp;&nbsp; return await self.receive_queue.get()</i><br><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^</i><br><i>&nbsp; File "C:\Users\potat\AppData\Local\Programs\Python\Python311\Lib\asyncio\queues.py", line 158, in get</i><br><i>&nbsp;&nbsp;&nbsp; await getter</i><br><i>asyncio.exceptions.CancelledError</i><br><br><i>Process SpawnProcess-5:</i><br><i>Traceback (most recent call last):</i><br><i>&nbsp; File "C:\Users\potat\AppData\Local\Programs\Python\Python311\Lib\multiprocessing\process.py", line 314, in _bootstrap</i><br><i>&nbsp;&nbsp;&nbsp; self.run()</i><br><i>&nbsp; File "C:\Users\potat\AppData\Local\Programs\Python\Python311\Lib\multiprocessing\process.py", line 108, in run</i><br><i>&nbsp;&nbsp;&nbsp; self._target(*self._args, **self._kwargs)</i><br><i>&nbsp;
     File 
    "C:\Users\potat\AppData\Local\Programs\Python\Python311\Lib\site-packages\uvicorn\_subprocess.py",
     line 76, in subprocess_started</i><br><i>&nbsp;&nbsp;&nbsp; target(sockets=sockets)</i><br><i>&nbsp; File "C:\Users\potat\AppData\Local\Programs\Python\Python311\Lib\site-packages\uvicorn\server.py", line 59, in run</i><br><i>&nbsp;&nbsp;&nbsp; return asyncio.run(self.serve(sockets=sockets))</i><br><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^</i><br><i>&nbsp; File "C:\Users\potat\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 190, in run</i><br><i>&nbsp;&nbsp;&nbsp; return runner.run(main)</i><br><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ^^^^^^^^^^^^^^^^</i><br><i>&nbsp; File "C:\Users\potat\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 118, in run</i><br><i>&nbsp;&nbsp;&nbsp; return self._loop.run_until_complete(task)</i><br><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^</i><br><i>&nbsp; File "C:\Users\potat\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 653, in run_until_complete</i><br><i>&nbsp;&nbsp;&nbsp; return future.result()</i><br><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ^^^^^^^^^^^^^^^</i><br><i>&nbsp; File "C:\Users\potat\AppData\Local\Programs\Python\Python311\Lib\site-packages\uvicorn\server.py", line 76, in serve</i><br><i>&nbsp;&nbsp;&nbsp; await self.startup(sockets=sockets)</i><br><i>&nbsp; File "C:\Users\potat\AppData\Local\Programs\Python\Python311\Lib\site-packages\uvicorn\server.py", line 127, in startup</i><br><i>&nbsp;&nbsp;&nbsp; server = await loop.create_server(</i><br><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ^^^^^^^^^^^^^^^^^^^^^^^^^</i><br><i>&nbsp; File "C:\Users\potat\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 1547, in create_server</i><br><i>&nbsp;&nbsp;&nbsp; server._start_serving()</i><br><i>&nbsp; File "C:\Users\potat\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 315, in _start_serving</i><br><i>&nbsp;&nbsp;&nbsp; sock.listen(self._backlog)</i><br><i>OSError: [WinError 10022] An invalid argument was supplied</i>

  • DeeeeeeeeDeeeeeeee the Americas
    Why does this seem to use a different port each time?

    -33736e281b74 HTTP/1.1" 200 OK
    INFO:     127.0.0.1:55107 - "GET /res.php?key=GSA%21%21%21%21%21%21%21%21%21%21%21&action=get&id=8f6047e2-0e17-4383-bda2-33736e281b74 HTTP/1.1" 200 OK
    INFO:     127.0.0.1:56534 - "GET /res.php?key=GSA%21%21%21%21%21%21%21%21%21%21%21&action=get&id=8f6047e2-0e17-4383-bda2-33736e281b74 HTTP/1.1" 200 OK
    Error solving v3 captcha: 'PlainTextResponse' object has no attribute 'startswith'
    INFO:     127.0.0.1:57716 - "GET /res.php?key=GSA%21%21%21%21%21%21%21%21%21%21%21&action=get&id=8f6047e2-0e17-4383-bda2-33736e281b74 HTTP/1.1" 200 OK
    INFO:     127.0.0.1:57721 - "POST /in.php HTTP/1.1" 200 OK
    INFO:     127.0.0.1:57724 - "GET /res.php?key=GSA%21%21%21%21%21%21%21%21%21%21%21&action=get&id=1e28d225-67db-4618-b253-d29ed8c0cd34 HTTP/1.1" 200 OK
    v3 URL|http://recaptcha-demo.appspot.com/recaptcha-v3-request-scores.php
    INFO:     127.0.0.1:59000 - "GET /res.php?key=GSA%21%21%21%21%21%21%21%21%21%21%21&action=get&id=1e28d225-67db-4618-b253-d29ed8c0cd34 HTTP/1.1" 200 OK
    INFO:     127.0.0.1:60341 - "GET /res.php?key=GSA%21%21%21%21%21%21%21%21%21%21%21&action=get&id=1e28d225-67db-4618-b253-d29ed8c0cd34 HTTP/1.1" 200 OK
    INFO:     127.0.0.1:61630 - "GET /res.php?key=GSA%21%21%21%21%21%21%21%21%21%21%21&action=get&id=1e28d225-67db-4618-b253-d29ed8c0cd34 HTTP/1.1" 200 OK
    Error solving v3 captcha: 'PlainTextResponse' object has no attribute 'startswith'
    INFO:     127.0.0.1:63004 - "GET /res.php?key=GSA%21%21%21%21%21%21%21%21%21%21%21&action=get&id=1e28d225-67db-4618-b253-d29ed8c0cd34 HTTP/1.1" 200 OK

  • rastarrrastarr Thailand
    Deeeeeeee said:
    Just getting back to this after a break...

    I changed the port both in the GSA CB webserver 2captcha settings, as well as entered this at command prompt: uvicorn _capv2v3:app --port 9321  --workers 8   to reflect the port I am attempting to use.

    Are these the only two places I needed to change?

    Trying to run this again now, I get this errmsg: OSError: [WinError 10022] An invalid argument was supplied

    Does anyone know what might be of issue? Thanks...ahead of time.


    \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

    This is what was returned, in its entirety:

    <i>C:\Users\potat\recaptcha\_capv2v3>uvicorn _capv2v3:app --port 9321&nbsp; --workers 8</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Uvicorn running on ←[1mhttp://127.0.0.1:9321←[0m (Press CTRL+C to quit)</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Started parent process [←[36m←[1m37872←[0m]</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Started server process [←[36m50400←[0m]</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Started server process [←[36m1324←[0m]</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Started server process [←[36m62204←[0m]</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Waiting for application startup.</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Started server process [←[36m17772←[0m]</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Started server process [←[36m12808←[0m]</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Waiting for application startup.</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Waiting for application startup.</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Started server process [←[36m28008←[0m]</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Application startup complete.</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Waiting for application startup.</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Started server process [←[36m59364←[0m]</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Waiting for application startup.</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Application startup complete.</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Started server process [←[36m24956←[0m]</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Application startup complete.</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Waiting for application startup.</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Waiting for application startup.</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Application startup complete.</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Application startup complete.</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Waiting for application startup.</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Application startup complete.</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Application startup complete.</i><br><i>←[32mINFO←[0m:&nbsp;&nbsp;&nbsp;&nbsp; Application startup complete.</i><br><i>←[31mERROR←[0m:&nbsp;&nbsp;&nbsp; Traceback (most recent call last):</i><br><i>&nbsp; File "C:\Users\potat\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 190, in run</i><br><i>&nbsp;&nbsp;&nbsp; return runner.run(main)</i><br><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ^^^^^^^^^^^^^^^^</i><br><i>&nbsp; File "C:\Users\potat\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 118, in run</i><br><i>&nbsp;&nbsp;&nbsp; return self._loop.run_until_complete(task)</i><br><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^</i><br><i>&nbsp;</i><br><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ^^^^^^^^^^^^^^^^^^^^^^^^^</i><br><i>&nbsp; File "C:\Users\potat\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 1547, in create_server</i><br><i>&nbsp;&nbsp;&nbsp; server._start_serving()</i><br><i>&nbsp; File "C:\Users\potat\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 315, in _start_serving</i><br><i>&nbsp;&nbsp;&nbsp; sock.listen(self._backlog)</i><br><i>OSError: [WinError 10022] An invalid argument was supplied</i>

    To be honest, I don't use Windows other than GSA stuff.
    I will say I used Python 3.10 to do all this stuff so maybe there's a breaking change with your installed 3.11 version but I'm just guessing.
    Drop the --workers down to 2 as well in case the higher number isn't being handled by your system.

    But these are just guesses. I've installed this many times on virtual machines and been running happily on my GSA VPS for a month now. 
    Sorry, I'm no Windows or Python expert
  • DeeeeeeeeDeeeeeeee the Americas
    edited April 2023
    "I will say I used Python 3.10 to do all this stuff so maybe there's a breaking change with your installed 3.11 version but I'm just guessing."
    rastarr: OK. I'm curious. I will see about installing the correct Python version and maybe that could be it. Dropping the workers down to 2, I still got a lot of errors. Is it Python 32 or 64 bit you used successfully? I doubt tit matters, but who knows.
    Thanks, ahead of time.
    ///////////////////////////////////////////////////////////////
    OK...I uninstalled Python...Tried installing the older version you used..both 32 and 64 bit. Forced re-installation of all components. I kept getting various error messages.
    Finally, using the latest version of Python, I installed without a single error, and it seems to work. I'm also not getting any errmsges while running.
    I'll test it and see. For some reason the cmd prompt install didn't work a few times? Either way, this was a cool DLer. Now I see where the files are...how this is done. Never used a utility like that before!
    Getting this now:
    C:\Users\potat\recaptcha\_capv2v3>uvicorn _capv2v3:app --port 9321 --workers 4
    ←[32mINFO←[0m:     Uvicorn running on ←[1mhttp://127.0.0.1:9321←[0m (Press CTRL+C to quit)
    ←[32mINFO←[0m:     Started parent process [←[36m←[1m62472←[0m]
    ←[32mINFO←[0m:     Started server process [←[36m47056←[0m]
    ←[32mINFO←[0m:     Waiting for application startup.
    ←[32mINFO←[0m:     Started server process [←[36m52332←[0m]
    ←[32mINFO←[0m:     Application startup complete.
    ←[32mINFO←[0m:     Waiting for application startup.
    ←[32mINFO←[0m:     Application startup complete.
    ←[32mINFO←[0m:     Started server process [←[36m70548←[0m]
    ←[32mINFO←[0m:     Waiting for application startup.
    ←[32mINFO←[0m:     Application startup complete.
    ←[32mINFO←[0m:     Started server process [←[36m23072←[0m]
    ←[32mINFO←[0m:     Waiting for application startup.
    ←[32mINFO←[0m:     Application startup complete.
  • rastarrrastarr Thailand
    Deeeeeeee said:
    "I will say I used Python 3.10 to do all this stuff so maybe there's a breaking change with your installed 3.11 version but I'm just guessing."
    rastarr: OK. I'm curious. I will see about installing the correct Python version and maybe that could be it. Dropping the workers down to 2, I still got a lot of errors. Is it Python 32 or 64 bit you used successfully? I doubt tit matters, but who knows.
    Thanks, ahead of time.
    ///////////////////////////////////////////////////////////////
    OK...I uninstalled Python...Tried installing the older version you used..both 32 and 64 bit. Forced re-installation of all components. I kept getting various error messages.
    Finally, using the latest version of Python, I installed without a single error, and it seems to work. I'm also not getting any errmsges while running.
    I'll test it and see. For some reason the cmd prompt install didn't work a few times? Either way, this was a cool DLer. Now I see where the files are...how this is done. Never used a utility like that before!
    Getting this now:
    C:\Users\potat\recaptcha\_capv2v3>uvicorn _capv2v3:app --port 9321 --workers 4
    ←[32mINFO←[0m:     Uvicorn running on ←[1mhttp://127.0.0.1:9321←[0m (Press CTRL+C to quit)
    ←[32mINFO←[0m:     Started parent process [←[36m←[1m62472←[0m]
    ←[32mINFO←[0m:     Started server process [←[36m47056←[0m]
    ←[32mINFO←[0m:     Waiting for application startup.
    ←[32mINFO←[0m:     Started server process [←[36m52332←[0m]
    ←[32mINFO←[0m:     Application startup complete.
    ←[32mINFO←[0m:     Waiting for application startup.
    ←[32mINFO←[0m:     Application startup complete.
    ←[32mINFO←[0m:     Started server process [←[36m70548←[0m]
    ←[32mINFO←[0m:     Waiting for application startup.
    ←[32mINFO←[0m:     Application startup complete.
    ←[32mINFO←[0m:     Started server process [←[36m23072←[0m]
    ←[32mINFO←[0m:     Waiting for application startup.
    ←[32mINFO←[0m:     Application startup complete.
    OK, so it's now waiting on port 9321 with 4 worker threads. 
  • DeeeeeeeeDeeeeeeee the Americas
    edited April 2023
    You know, it's not you, it;'s me, friend! lol I must have COVID-brain. :P lol Seriously, though...

    Besides errors on install using chocolatey, there was also the issue of my own confusion.

    I failed to pay attention to:
    "10. Now it is time to activate them into GSA SER. You can add this to GSA CaptchaBreaker if it is running in webserver mode too."

    I didn't realize I can add the service directly to GSA SER! Why? Not paying attention. :|

    It's working now.  :star:  @rastarr : Thank you so much for the cool wrapper idea, and for the help!!    What are these, though? I know I already asked...sorry...still not sure...
    "Error solving v2 captcha: 'PlainTextResponse' object has no attribute 'startswith'



  • rastarrrastarr Thailand
    Deeeeeeee said:
    You know, it's not you, it;'s me, friend! lol I must have COVID-brain. :P lol Seriously, though...

    Besides errors on install using chocoloatey, there was also the issue of my own confusion.

    I failed to pay attention to:
    "10. Now it is time to activate them into GSA SER. You can add this to GSA CaptchaBreaker if it is running in webserver mode too."

    I didn't realize I can add the serice to GSA SER! Why? Not paying attention. :|

    It's working now.  :star:  @rastarr : Thank you so much for the cool wrapper idea, and for the help!!    What are these, though? I know I already asked...sorry...still not sure...
    "Error solving v2 captcha: 'PlainTextResponse' object has no attribute 'startswith'



    The 'PlainTextResponse' thing is a string manipulation issue but has no bearing on actual captcha solving so don't worry about it. I'd never used or coded in Python before and still very much a baby. Forget that error since it's just an output that I may or may not fix - probably not :)
    Thanked by 1Deeeeeeee
  • DeeeeeeeeDeeeeeeee the Americas
    I never checked back...

    I've had this running....not sure if it's working...

    Getting a lot of 200 responses...
    but SER shows these stats:
    2 success, 62819 failed, 0 wrong

    Does this counter not work for this solver? Or, does this suggest I should check my proxies? Thanks.
  • DeeeeeeeeDeeeeeeee the Americas
    OK. I've checked the proxies. I chose to go with webshare.io, as their service worked for you.

    I just upgraded from the ten free proxy plan to a paid plan with 500 proxies.

    Up until now, it was rotating between only ten proxies. I am hoping that adding more will work better.
  • DeeeeeeeeDeeeeeeee the Americas
    edited June 2023
    OK; clearly this works now with more proxies! @rastar: THANK YOU! Only downside, I noticed it puts my machine at 100% processor load.
    As it's solving successfully, am I just assigning too many workers, perhaps?
    Thanks for all your help!!!!
  • rastarrrastarr Thailand
    Deeeeeeee said:
    OK; clearly this works now with more proxies! @rastar: THANK YOU! Only downside, I noticed it puts my machine at 100% processor load.
    As it's solving successfully, am I just assigning too many workers, perhaps?
    Thanks for all your help!!!!
    Oops sorry I didn't get to reply earlier due to other life stuff. 
    I run this on a dedicated Hetzner Linux server these days, since I also run 2 VPS and I share the Linux box for the captchas.
    Admittedly, I really only use Recaptchav3 types since they're the faster to solve but I have switched the v2 on, from time to time.

    I use 3 workers on that server. From memory, I've always used 3 workers but you might need to tweak

    Point to note: when using the Recaptchav2 (which uses javascript) there is apparently a memory leak. That could lead to issues. For me anyway, I use a cron job on my Linux server which restarts the server every 3 hours and restarts the captcha-solving process which is also on a cron job.
  • DeeeeeeeeDeeeeeeee the Americas
    edited June 2023
    rastarr said:

    I use 3 workers on that server. From memory, I've always used 3 workers but you might need to tweak
    I had set 24 workers. :|

    Actually, I didn't experience the CPU overload during most of the time running this. It happened only twice in a few days.
    I guess I can just have the API-based solver restart periodically? Hmm..taskkill via a batch file that runs every hour...?
    And then another batch file called next to start the solver again right after?
    or in the same batch file that ended the process? if that works hmmm...

  • rastarrrastarr Thailand
    Deeeeeeee said:
    rastarr said:

    I use 3 workers on that server. From memory, I've always used 3 workers but you might need to tweak
    I had set 24 workers. :|

    Actually, I didn't experience the CPU overload during most of the time running this. It happened only twice in a few days.
    I guess I can just have the API-based solver restart periodically? Hmm..taskkill via a batch file that runs every hour...?
    And then another batch file called next to start the solver again right after?
    or in the same batch file that ended the process? if that works hmmm...

    Yeah, 24 workers might be unnecessary. The code stacks them anyway in a queue and processes jobs async so you don't really need that many threads. Testing your own use-case is a good thing.
    Sorry, I'm clueless about batch files.
    Google search is my go-to for that stuff
  • DeeeeeeeeDeeeeeeee the Americas
    edited June 2023
    rastarr said:

    Google search is my go-to for that stuff
    :grin:  Google is good. lol  I have forgotten  a lot. I *thought* there was a taskkill command but checked b/c I def don't want to go on here misleading others!!  And, yeah, it still exists. lol

    rastarr said:

    Yeah, 24 workers might be unnecessary.
    OK,  I'll play around with that number, too.

    I appreciate all the help!!! I am a C-128 enthusiast and that had a Z80 processor in it!! It's so odd people don't remember the computer age started with 8080 machines everywhere!!!  You guys were the coding pioneers!!
  • rastarrrastarr Thailand
    Deeeeeeee said:

    :grin:  Google is good. lol  I have forgotten  a lot. I *thought* there was a taskkill command but checked b/c I def don't want to go on here misleading others!!  And, yeah, it still exists. lol

    OK,  I'll play around with that number, too.

    I appreciate all the help!!! I am a C-128 enthusiast and that had a Z80 processor in it!! It's so odd people don't remember the computer age started with 8080 machines everywhere!!!  You guys were the coding pioneers!!
    I only use Windows for the many link building software so my experience is limited. I Google as I go and need to know something.

    Ahh yes the Z80. I remember those time fondly. I used to crack games back in those days and wrote an assembly screen packer that was the best around. Different times back then  :D
    Thanked by 1Deeeeeeee
  • edited June 2023
    Hey Guys, 

    Just checking if anyone still using this? I'm looking at setting this up again after my intial test. Are you getting good results/solve rates from this? 

    Thanks in advance. 
  • angel789angel789 viet nam
    edited July 2023

    I am using Heztner VPS 2 core - 2GB RAM (window server 2019) to test but it error (Internet is normal). Do you know how to fix it?:

    This site can’t be reached

    127.0.0.1 refused to connect.

    Try:

    • Checking the connection
    • Checking the proxy and the firewall
    ERR_CONNECTION_REFUSED
  • effzaeffza South Africa
    edited September 2023

    Can anyone help me, not sure what I am doing wrong, but this is the error I'm getting:


  • effza said:

    Can anyone help me, not sure what I am doing wrong, but this is the error I'm getting:

    Sorry, I haven't used this in a long time. I switched to Xevil for captcha-solving. Using a constantly changing git repo has so many breaking changes that it wasn't worth my efforts in maintaining this.
  • effzaeffza South Africa
    rastarr said:
    effza said:

    Can anyone help me, not sure what I am doing wrong, but this is the error I'm getting:

    Sorry, I haven't used this in a long time. I switched to Xevil for captcha-solving. Using a constantly changing git repo has so many breaking changes that it wasn't worth my efforts in maintaining this.

    Okay thanks for letting me know.
Sign In or Register to comment.