Created
August 12, 2018 14:38
-
-
Save mhajder/9882658b7d760dea57e42dfb352f0cb2 to your computer and use it in GitHub Desktop.
Polyglot XSS Playground
This file contains hidden or 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
<?php | |
$payload = (isset($_GET['payload'])) ? $_GET['payload'] : ""; | |
?> | |
<html> | |
<head><title>Polyglot XSS Playground</title></head> | |
<body> | |
<div><?php echo $payload; ?></div> | |
<div class="<?php echo $payload; ?>">text</div> | |
<div class='<?php echo $payload; ?>'>text</div> | |
<style><?php echo $payload; ?></style> | |
<a href="<?php echo $payload; ?>">text</a> | |
<!-- <?php echo $payload; ?> --> | |
<script>// <?php echo $payload; ?></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment