Javascript Injection : Fun with Javascripts: Hello guys! so today we are going to discuss about javascript injection :P. By you can produce XSS Pop up on any site all you need to do is just paste some javascript vectors in console prompt of your browser.
By this you can prank your friends just by pasting javascript on a popular sites like facebook in console and take screenshots and simple send it to your friend :P ok so here we start..
Javascript Injection: Produce XSS Pop Up on any Site
Javascript Injection: Produce XSS Pop Up on any Site. Basically, its just for fun, but sometimes you can get cookies of vulnerable website by using Javascript injection, ok so lets start..
1). For Chrome open console by Ctrl+Shift+I and paste any of these javascript in console box and get pop up :)
2). Do the same for Firefox :) Ctrl+Shift+I :)
1). For Chrome open console by Ctrl+Shift+I and paste any of these javascript in console box and get pop up :)
2). Do the same for Firefox :) Ctrl+Shift+I :)
To Alert and Changing Title on Website by Javascript(XSS)
just enter the below javascript in console :)Javascript: alert(document.title = "title name");
Message On website on alert Box
Just enter this script:Javascript: alert("you message here");use this script for more than one message
javascript: alert("First message"); alert("second message"); alert("Third message");
Getting Cookies By javascripts(XSS)
You can also get cookies by javascript(XSS).. just use below scripts :)alert(document.cookie);What are you waiting for? Just go ahead and prank your friends :P
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);
So thats it for now if you really enjoyed reading do share and don't forget to leave your feedback :)...