I'm looking to change the content of an html form...The form is on another domain and I basically want to auto-fill the input boxes.
So for example I go to http://www.example.com/formpage
On this page there are 3 boxes to put the form data in and a post button. I want to autofill the form so the data is already in...it will always be the same data....
the thing that makes this so hard is that the form has hidden variables so I must go to the form page to ensure the session is valid....
Also the form fields never have the same name for example
<input class="req" tabindex="1" type="text" name="U2FsdGVkX18y:NDQ1NTI0NF1Jm0vsOC.QaxQgsG9eh7z8g1Z1fzYck0P66njvaXhpost92Vdu6Xk" id = "U2FsdGVkX18y:NDQ1NTI0NF1Jm0vsOC.QaxQgsG9eh7z8g1Z1fzYcUk0P66njvaXhpost92Vdu6Xk" size="30" maxlength="70" value="">
what i want to do is change the value of this input box...all 3 for that matter...the only steady identifiers are the tab index and maxlength....
i was thinking of adding the page as an iframe and modifying the content ?
I tried to get the source of the page using php and then modify it and post, but the problem is that you need to be logged in to post the data....it seems that the code i was using to get the source of the page and post it is server side?
Looking for
Moderator: General Moderators
Re: Looking for
You could use javascript to loop through each input and check its tabindex or maxlength, since they are two things that are constant.
Btw, if you double post, chances are you'll get split responses so you won't get as helpful replies.
Btw, if you double post, chances are you'll get split responses so you won't get as helpful replies.
Re: Looking for
Hmm im not sure what you mean any scripts you can suggest for greasemonkey...i suppose something alone the lines of what ettercap filters do in a MITM attack is what I need?