Skip to content

Instantly share code, notes, and snippets.

@carlosvillasanchez
Created October 30, 2021 09:04
Show Gist options
  • Save carlosvillasanchez/c1c8dcb492320c6f55616f6252e58f1a to your computer and use it in GitHub Desktop.
Save carlosvillasanchez/c1c8dcb492320c6f55616f6252e58f1a to your computer and use it in GitHub Desktop.
window.addEventListener("DOMContentLoaded", function () {
e = `)]}'` + new URL(location.href).searchParams.get("xss");
c = document.getElementById("body").lastElementChild;
if (c.id === "intigriti") {
l = c.lastElementChild;
i = l.innerHTML.trim();
f = i.substr(i.length - 4);
e = f + e;
}
let s = document.createElement("script");
s.type = "text/javascript";
s.appendChild(document.createTextNode(e));
document.body.appendChild(s);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment