Published 18 years 7 months ago • Last updated March 22, 2025 • ⏱️ < 1 min read
[Blocked Image]
Welcome my young apprentice so you want to learn how to defend yourself from the onslaught of XSS ninjas do you? Well in my first Dojo lesson I shall show you techniques of the shaolin crane style to defend yourself from the XSS punch.
Use the roundhouse wisely my young master and always proceed with caution. When a XSS ninja attacks you with the XSS punch:-
<pre lang="javascript"> "><script>alert(/XSS PUNCH/)</script> </pre>You should respond quickly with the XSS roundhouse:-
<pre lang="javascript"> <script> if (top == self) { setInterval('alert(/XSS ROUNDHOUSE/)',500) } else { top.location.href = 'http://www.yourdojohere'; } </script> </pre>I hope you enjoyed this lesson and if you require more tutoring consult the Grandmaster snake, Master null byte, The shaolin warriors or Pai Mei DaCat