Skip to content

[SCRIPTING] Remove input with random name from form

I'm struggling with something that is curious and maybe it has been discussed in the forum, the topic is the following:

<form>
...
<captcha>
<input name="random-name" value ="" style="display:none">
<img src="./captcha.jpg">
<input name="captcha" value="">
</captcha>
....
</form>

If the damn input had a fixed name we could eliminate it, but since it is random, I can't find a way to omit it from the sending, it's curious that GSA asks me and adds the captcha 2 times, each time they work harder on some cms...

I have tried set unknown variable=%empty%, but I think it is not valid for this case.

Comments

  • SvenSven www.GSA-Online.de
    use this...
    remove fixed data=var_name
    or if it's random...
    remove fixed data=%extract_rnd_name%

    [extract_rnd_name]
    type=extract
    front1=<captcha>
    front2=<input name="
    back="
  • Yes, I didn't know I could use extract with this command... I'm so rusty xD. Thx!! ;)

Sign In or Register to comment.