How to solve image captchas

Hi, here are the steps

  1. Get the captcha image from the website. Its bytes will be stored in the data.RAWSOURCE variable which is a Byte Array
  2. Use bytes => base64 to get a base64 string from the byte array
  3. Finally use the block to solve an image captcha by using your favourite solver (configurable in RL Settings)

Here is some sample LoliCode

BLOCK:HttpRequest
  url = "https://example.com/captcha.png"
  TYPE:STANDARD
  $""
  "application/x-www-form-urlencoded"
ENDBLOCK

BLOCK:ByteArrayToBase64String
  bytes = @data.RAWSOURCE
  => VAR @BASE64
ENDBLOCK

BLOCK:SolveImageCaptcha
  base64 = @BASE64
  => VAR @SOLUTION
ENDBLOCK

Ruri

10 Likes