Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save shawngustaw/3c60d311cb39190aa4990803786813ee to your computer and use it in GitHub Desktop.
Save shawngustaw/3c60d311cb39190aa4990803786813ee to your computer and use it in GitHub Desktop.
Testing opener is restricted
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Testing opener is restricted</title>
<meta name="description" content="Testing">
<meta name="author" content="Shawn Gustaw">
</head>
<body>
<script>if (window.opener) {opener.location = 'https://www.securitycompass.com';} else {document.write("Y'all are good!")}</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment