javascript过滤XSS

上传者: lliiqiang | 上传时间: 2021-08-12 11:31:19 | 文件大小: 62KB | 文件类型: ZIP
用javascript写的过滤XSS代码,危险代码被转义而不是被删除. 根目录下js-xss-master/dist/test.html是例子.

文件下载

资源详情

[{"title":"( 27 个子文件 62KB ) javascript过滤XSS","children":[{"title":"js-xss-master","children":[{"title":".gitignore <span style='color:#111;'> 135B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 11.11KB </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"xss <span style='color:#111;'> 1.64KB </span>","children":null,"spread":false}],"spread":true},{"title":"build.cmd <span style='color:#111;'> 47B </span>","children":null,"spread":false},{"title":"test","children":[{"title":"test_custom_method.js <span style='color:#111;'> 10.01KB </span>","children":null,"spread":false},{"title":"test_html_parser.js <span style='color:#111;'> 3.65KB </span>","children":null,"spread":false},{"title":"test_xss.js <span style='color:#111;'> 8.59KB </span>","children":null,"spread":false}],"spread":true},{"title":"bower.json <span style='color:#111;'> 830B </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"dist","children":[{"title":"test.html <span style='color:#111;'> 264B </span>","children":null,"spread":false},{"title":"xss.js <span style='color:#111;'> 20.05KB </span>","children":null,"spread":false}],"spread":true},{"title":"MIT-License <span style='color:#111;'> 1.10KB </span>","children":null,"spread":false},{"title":"bower_register.cmd <span style='color:#111;'> 56B </span>","children":null,"spread":false},{"title":"benchmark","children":[{"title":"index.js <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false},{"title":"vs_validator.js <span style='color:#111;'> 547B </span>","children":null,"spread":false},{"title":"file.html <span style='color:#111;'> 106.90KB </span>","children":null,"spread":false}],"spread":true},{"title":"example","children":[{"title":"analyse_img_list.js <span style='color:#111;'> 723B </span>","children":null,"spread":false},{"title":"strip_tag.js <span style='color:#111;'> 558B </span>","children":null,"spread":false},{"title":"allows_tag_prefix.js <span style='color:#111;'> 551B </span>","children":null,"spread":false},{"title":"allows_attr_prefix.js <span style='color:#111;'> 651B </span>","children":null,"spread":false}],"spread":true},{"title":".travis.yml <span style='color:#111;'> 43B </span>","children":null,"spread":false},{"title":"README.zh.md <span style='color:#111;'> 11.00KB </span>","children":null,"spread":false},{"title":"lib","children":[{"title":"cli.js <span style='color:#111;'> 658B </span>","children":null,"spread":false},{"title":"parser.js <span style='color:#111;'> 4.62KB </span>","children":null,"spread":false},{"title":"xss.js <span style='color:#111;'> 4.67KB </span>","children":null,"spread":false},{"title":"index.js <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false},{"title":"default.js <span style='color:#111;'> 8.84KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}]

评论信息

  • vowping :
    很好,很受用,不错的代码,学习了................
    2021-05-18
  • zhangjianqp :
    不错的代码,学习了
    2020-03-27
  • u012637514 :
    将常见的javascript脚本注入统一过滤了以下
    2019-03-20
  • u014472596 :
    很好,很受用,非常感谢
    2015-11-05
  • tym_ly :
    试过了,将常见的javascript脚本注入统一过滤了以下,挺好的。
    2014-11-09

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明