Tuesday, January 5, 2016

nice JavaScript to demonstrate XSS - rotate all images 180 degree


javascript:(function(){['', '-ms-', '-webkit-', '-o-', '-moz-'].map(function(prefix){Array.prototype.slice.call(document.querySelectorAll('img')).map(function(el){el.style[prefix + 'transform'] = 'rotate(180deg)';});});}())

http://yourjavascript.com/30802011141/flipimages.js


Example HTML
<html>
<img src="http://i66.tinypic.com/rciykm.gif">
<script src="http://yourjavascript.com/30802011141/flipimages.js"></script>
</html>

Result