Created
November 1, 2018 14:10
-
-
Save bl4de/7732d2f9512e14b6a33350fc0d42e697 to your computer and use it in GitHub Desktop.
Simple redirection app
This file contains 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
<html> | |
<head> | |
<title>Redirection</title> | |
</head> | |
<body> | |
</div> | |
<script> | |
// imagine that read url from GET parameter routine goes here... | |
// but we just hardcode it for now :) | |
const url = 'https://hackerone.com' | |
function redirect() { | |
// I will redirect you! Now! | |
if (url) { | |
location.href = url | |
} else { | |
location.href = 'https://company.com/__internal__/supersecretadminpanel' | |
} | |
} | |
setTimeout( redirect, 10000 ) | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment