Skip to content

Instantly share code, notes, and snippets.

@Fray117
Created December 18, 2018 16:59
Show Gist options
  • Save Fray117/510a30fcdb900aa2c644343afd6684e5 to your computer and use it in GitHub Desktop.
Save Fray117/510a30fcdb900aa2c644343afd6684e5 to your computer and use it in GitHub Desktop.
Page containing JS
<!DOCTYPE html>
<html>
<head>
<title>XSS Sample</title>
<style type="text/css">
html {
background-image: url('https://reset.ga/Eromanga.png');
background-size: cover;
}
h1 {
font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
text-align: center;
font-size: 10em;
text-shadow: -2px -2px 0 #808080, 2px -2px 0 #808080, -2px 2px 0 #808080, 2px 2px 0 #808080;
}
</style>
</head>
<body>
<h1 onclick='window.alert("Hello World!")'>XSS Sample <span id="year"></span></h1>
<script type="text/javascript">
var today = new Date();
document.getElementById("year").innerHTML = today.getFullYear();
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment