I want to test a site against javascript injection. I am familier with following syntaxes which are working fine.
javascript:alert(document.cookie);
javascript:void(document.cookie="authorization=true");
javascript:void(document.cookie="authorization=true");javascript:alert(document.cookie);
javascript:void(document.forms[0].email.value="test@test.com");
I tried following to inject a loop
javascript:for(i=0;i<10;i++){document.forms[0].t1.value=i;}
It is working. But clering all the contents of browser and prints '9' (result).
Is there any way/sybtax to inject a loop so i can run/call a function/statement multiple times. Or any tool/utility/aadon which can help me.
*I can run the site only in IE.