Posted on Leave a comment

Malicious sample JavaScript code – how to create an infinite loop in a modern-day browser window. Tip – don’t run on a mobile device!

image thumb451

image thumb451

This is the code the 13-year-old Japanese girl was arrested for by Japanese police with no sense of humor. I’ve run it on a Windows box and yeah, you can get out of the loop. Works on Chrome and most mobile browsers.

WARNING: DO NOT RUN ON A MOBILE DEVICE!

<html>
<head>
  <script language="JavaScript">
    for ( ; ; ) {
    window.alert("Infinite loop baby!")
    }
  </script>
</head>
<body/>
</html>