Create encoded sql payloads

In this part I would like to give an example of how to create an encoded payload.

First we are going to define the payload that we want to encode:

union select 1,2,3,concat(table_name),5 from information_schema.tables table_schema = database()

this case we are using the payload without any coding, but we have more ways to declare the payload, this by changing its syntax and adding other things even without coding, for example:

union all(select 1,2,3,concat(table_name),5) from information_schema.tables where table_schema = database()

To start coding we are going to first use the comments method:


Now we have it encoded with comments, but we can mix encodings, for example with the URL method:


In this way we can evade filters and play with different encodings and mixes.

Leave a Reply