Advertisement
howmuch515

xss_test.html

May 1st, 2020
683
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 0.58 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6.     <title>XSS test</title>
  7. </head>
  8. <body>
  9.     <h1>Check console.</h1>
  10.  
  11.     <!-- HTML Entities -->
  12.     <a href='j&#x41;vascript:console.log("HTML &#x45;ntity")'>hoge</a>
  13.  
  14.     <!-- URL Encoding -->
  15.     <a href="javascript:al%65rt('URL Encoding')">fuga</a>
  16.  
  17.     <script>
  18.         // unicode encoding.
  19.         \u0063onsole.log("\u0061")
  20.  
  21.         // hex encoding.
  22.         eval('\x63onsole.log("\x63")')
  23.     </script>
  24. </body>
  25. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement