Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 486 Bytes

xss-sample.md

File metadata and controls

26 lines (19 loc) · 486 Bytes

XSS の例

色々あります。ぜひ試してみてください。

アラートを出す

<script>alert("YOU ARE HACKED!!!");</script>

背景をおかしくする

<style>
body {
  background-image: url("https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png");
  background-repeat: repeat;
}
</style> 

特定のサイトに飛ばす

<script>window.location.href = 'https://twitter.com/huitgroup';</script>