Skip to content

Instantly share code, notes, and snippets.

@bl4de
Created November 1, 2018 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bl4de/7732d2f9512e14b6a33350fc0d42e697 to your computer and use it in GitHub Desktop.
Save bl4de/7732d2f9512e14b6a33350fc0d42e697 to your computer and use it in GitHub Desktop.
Simple redirection app
<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