常用的注入輸入:
Paste_Image.png
如下查詢
- id為int
select * from table_name where id=23
那么id可以輸入下面這些內(nèi)容:
23'
'
23 or 1=1
23 and 1=1
23 and false
23 and true
23--+
23 and true--+
- id為字符
select * from table_name where id='23'
可以如下注入
23'
23' or '1'='1
23' and '1'='1
23' and false--+
23' and true--+
- 其他注入可以自由把握
下面是個(gè)整體的比較,id為整型時(shí),可能出現(xiàn)的情況
Paste_Image.png