Skip to content

Posting 'g-recaptcha-response' data to a different parameter

I'm looking at scripting a site that uses recaptcha, but wants the data for 'g-recaptcha-response' as a different parameter, in this case 'user[recaptcha]'

I've tried using:
user[recaptcha]=%captcha%

...but SER just adds this line of data to the POST
g-recaptcha-response=03AGdBq27NHw-3QzvJhYyu9aXRR84YNt5jAqcdzg...<cut>...SQXKws_sDk8

Is there anything I can do here?
Tagged:

Comments

  • SvenSven www.GSA-Online.de
    user[recaptcha]=%recaptchav2% <<< this should work...even though it should also work for v3...i will also support %recaptcha% in next update.
    Thanked by 1cherub
  • I've given that a go, now it seems to be sending the wrong site key to the captcha solver
    For some reason it's cutting the first two characters of the site key, which are 6L
  • Going back to user[recaptcha]=%captcha% I get the same result now too. I'm running v15.48
  • SvenSven www.GSA-Online.de
    ok i think the problem is in latest update...will have to fix that sorry.
  • SvenSven www.GSA-Online.de
    another option would be to use:
    recaptcha default varname=user[recaptcha]
  • Thanks for your efforts Sven but I'm not having any success. I've tried:

    user[recaptcha]=%captcha%
    user[recaptcha]=%recaptchav2%
    user[recaptcha]=%recaptcha%
    recaptcha default varname=user[recaptcha] (in the [SETUP] section right?)

    ...but they're all posting an empty value for user[recaptcha] and adding the g-recaptcha-response field.

    The only partial success I've had is by adding some fixed data to the form eg.

    add fixed data=user[recaptcha]=%recaptcha% hardcoded-sitekey-here

    ...but this results in 2 different recaptchas being sent to the solver and both being added to the form post: 

  • SvenSven www.GSA-Online.de
    don't add it to SETUP but the section where this is used.
    Thanked by 1cherub
  • The 'recaptcha default varname' option worked, thanks!
  • AliTabAliTab GSAserlists.com
    This topic saved me a lot of time :) Thank you @cherub

    would be nice to be added to the script manual @Sven please B)
    %recaptcha% and recaptcha default varname
Sign In or Register to comment.