Skip to content

Instantly share code, notes, and snippets.

@lostsh
Last active May 31, 2022 12:29
Show Gist options
  • Save lostsh/1a963d8593623ee5a18df37e5933bbef to your computer and use it in GitHub Desktop.
Save lostsh/1a963d8593623ee5a18df37e5933bbef to your computer and use it in GitHub Desktop.
let's do some sketchy things
const interval = setTimeout(redirect, 5000);
function stopTimout() {
clearTimeout(interval);
}
function redirect(){
stopTimout();
console.log("Redirect");
console.log(document.cookie);
}
@lostsh
Copy link
Author

lostsh commented May 31, 2022

//location.href = "file:///C:/Windows/System32";
//window.open("file:///c:/windows/system32/drivers/etc/hosts");
//document.body.innerHTML = "<iframe src="file://localhost/c:/windows/system32/drivers/etc/hosts" onload="alert(iframe.contentDocument.body.innerHTML)" id="iframe"></iframe>";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment