JavaScript Injection

Here is few nice help full toll for javscript injection

Testing different resolutions for web pages
javascript:window.resizeTo(1095,895); window.moveTo(55,55);

Rendered source of the currently displayed page

javascript:var myWin=window.open("","myWin","width=800,height=600,scrollbars,resizable,menubar");var myStr=document.documentElement.outerHTML;myStr=myStr.replace(/\</g,"&lt;").replace(/\>/g,"&gt;").replace(/\r\n/g,"<br>");myWin.document.open();myWin.document.write(myStr);myWin.document.close();

Rendered source for all frames in a frameset:

javascript:var myWin,myStr,fms=window.top.frames;var i,len=fms.length;for(i=0;i<len;i++){myWin=window.open("","frame"+i,"width=800,height=600,scrollbars,resizable,menubar");myStr=fms[i].document.documentElement.outerHTML;myStr=myStr.replace(/\</g,"&lt;").replace(/\>/g,"&gt;").replace(/\r\n/g,"<br>");myWin.document.open();myWin.document.write(myStr);myWin.document.close();}

All tag
javascript:alert(document.body.innerHTML)

http://www.patricktalmadge.com/2006/11/28/javascript-injection/

For more information please google
http://www.google.com/search?hl=en&q=javascript+injection&btnG=Search

NOTE: If you have more please post it on comment

Thanks,

Suresh Behera

1 Comment

  • Wow, this is brilliant, im kinda a noob to java injection, ive only played and tampered with small and invaluable variables, but this is some elite stuff, thanks for the share.

Comments have been disabled for this content.