openbullet / OpenBullet2

OpenBullet reinvented
https://docs.openbullet.dev/
MIT License
1.79k stars 479 forks source link

[Bug]: 2Captcha GeeTest returns empty "successful" response #687

Closed ShayMe21 closed 5 months ago

ShayMe21 commented 2 years ago

Version of the software

0.2.3

Operating system

MacOS 12.2.1

Browser / Native

Chrome Version 100.0.4896.75

What happened?

I am using the 2captcha service to solve this GeeTest slider for fun: https://www.geetest.com/demo/slide-float.html AFAIK, this is not GeeTest v4 because captcha_id parameter is not there as per guide 2captcha guide here.

I get a solution but it is always empty like this:

image

Relevant LoliCode if needed

BLOCK:CurrentUnixTime
  => VAR @now
ENDBLOCK

BLOCK:HttpRequest
LABEL:Http Request - GeeTest challenge page
  url = $"https://www.geetest.com/demo/gt/register-slide?t=<now>"
  maxNumberOfRedirects = 7
  customHeaders = {}
  TYPE:STANDARD
  $""
  "application/x-www-form-urlencoded"
ENDBLOCK

BLOCK:Parse
LABEL:Parse GeeTest Script - challenge
  input = @data.SOURCE
  attributeName = ""
  jToken = "challenge"
  multiLine = True
  MODE:Json
  => VAR @challenge
ENDBLOCK

BLOCK:Parse
LABEL:Parse GeeTest Script - gt
  input = @data.SOURCE
  attributeName = ""
  jToken = "gt"
  multiLine = True
  MODE:Json
  => VAR @gt
ENDBLOCK

BLOCK:SolveGeeTestCaptcha
  gt = @gt
  apiChallenge = @challenge
  apiServer = "apiv6.geetest.com"
  siteUrl = "https://www.geetest.com/demo/slide-float.html"
  => VAR @solveGeeTestCaptchaOutput
ENDBLOCK
openbullet commented 2 years ago

Hello, please open the issue on the CaptchaSharp repository (it's still maintained by me) since this is a CaptchaSharp issue https://github.com/openbullet/CaptchaSharp

ShayMe21 commented 2 years ago

There you go: https://github.com/openbullet/CaptchaSharp/issues/16

londek commented 2 years ago

I made PR fixing this https://github.com/openbullet/CaptchaSharp/issues/20