Jump to content

Form Troubles...


Recommended Posts

From http://www.testingsecurity.com/how-to-test...cript-Injection

__________________________________________________________________________________________________

You can also use javascript to modify any value with an html form, including hidden forms, and disabled forms. The following is an example of how you would set an input tag named email within form number 0 (or the first form on the page)

java script:void(document.forms[0].email.value="test@test.com");

___________________________________________________________________________________________________

Basically it works like this:

java script:-------------------Declares a javascript function

void()-------------------------The javascript funciton to run

document---------------------Pointing to the current page...

forms[0]----------------------First form on the page(starts at 0)...

email--------------------------name of the input field you with to modify...

value=""----------------------The value you wish to set in the above field

You would run this as a URL in DOS or there s probably an IE.au3 function you can use.

_RunDos('start java script:void(document.forms[0].email.value="test@test.com");')

Dont do anything illegal :rolleyes:

Edited by Mast3rpyr0
Link to comment
Share on other sites

hmm not sure you can do it through JI but maybe an IE function...

maybe _IEAction() but then i think your stuck trying to get the name of the form again.

See if this helps http://www.autoitscript.com/forum/index.php?showtopic=48231

Link to comment
Share on other sites

"java script:void(document.forms[0].submit());"

^ That will submit the form.

Now another problem. Using Javascript to change the stuff seems to work, but when you submit, it shows that you didn't enter anything.

Link to comment
Share on other sites

can i see what your full code looks like putting **** for any info you dont want me to see such as password and username

seeing the page will help me figure this out a little faster

Edited by Mast3rpyr0
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...