Warn your visitors if Lenovo malware is detected

Submitted on 19 February 2015 at 22:38 UTC
4874 views

Section 1 (javascript)

var check_lenovo_iv = setInterval('checkLenovo()', 2000);

function checkLenovo () {
 if (window.similarproducts) { // this variable is defined as soon as the malicious payload from Superfish is injected into the DOM
  // display a warning to your visitor that they've been hacked by Lenovo
  clearInterval(check_lenovo_iv);
 }
}

Raw · Download

Pastee