Saturday 25 January 2014

Javascript Injection : Fun with Javascripts


By on 03:41

javascript Injection is Similar to CSRF vulnerability ,
its just for fun, but sometimes you can get cookies of vulnerable website by using Javascript injection,
Take a Look of javascript injection
[Note : working in Firefox Only]
Alert and Changing Title on Website 
Javascript: alert(document.title = "title name"); 
You can Chnage Title of website by putting this script in you browser 
and you'll get a Alert too .. 
js1.jpg (996×390) 
Message On website on alert Box 
Javascript: alert("you message here");
use this script for more than one message
javascript: alert("First message"); alert("second message"); alert("Third message");
js1.jpg (972×453)
you can show you message on website by putting this script on browser URL box
Getting Cookies By javascripts
you can use these scripts to get and cha
nge cookies of website

js3.jpg (901×412)

alert(document.cookie); 
javascript:void(document.cookie="Cookie_name=Cookie_value"); 
javascript:void(document.cookie="username=user123"); alert(document.cookie); 
javascript:void(document.cookie="username=user123"); void(document.cookie="password=pass123"); alert(document.cookie); 
js2.jpg (994×361)

About Chirag Arya

Chirag is a young guy who is blessed with the art of Blogging,He love to Blog day in and day out,He is a Website Designer, Certified Hacker and a Certified Graphics Designer.

0 comments:

Post a Comment