wgpsec/aboutsecurity/sqlmap-advanced
Claude Code and agent skill by wgpsec/aboutsecurity
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
sqlmap 高级用法完整参考。当确认存在 SQL 注入需要用 sqlmap 自动化利用时使用。覆盖 POST/Cookie/Header 注入、tamper 脚本选择、--technique 精确控制、二次注入、OS shell/文件读写、数据库提取优化
Install
npx vskill@latest install wgpsec/aboutsecurity/sqlmap-advancedSKILL.md
The same SKILL.md was published earlier as wgpsec/aboutsecurity/sqlmap-advanced.
sqlmap 高级用法完整参考
超时控制(强制执行)
sqlmap 可能运行很长时间。必须用 timeout 包裹:
深入参考
- tamper 脚本速查表 → references/tamper-reference.md
- 高级用法详细命令(OS Shell/文件读写/二次注入/性能调优) → references/advanced-usage.md
Phase 1: 基础检测
GET 参数注入
POST 参数注入
关键:--data 中包含所有表单字段(尤其 submit 按钮),PHP 常用 isset($_POST['submit']) 校验。
Cookie 注入
HTTP Header 注入
星号 * 标记注入点位置。
从 Burp 请求文件
Phase 2: --technique 精确控制
| 字母 | 技术 | 适用场景 | |
|---|---|---|---|
| B | Boolean-based blind | 有布尔差异(页面内容变化) | |
| E | Error-based | 有报错回显 | |
| U | UNION query | 有数据回显 | |
| S | Stacked queries | 支持分号(MySQL、MSSQL、PostgreSQL) | |
| T | Time-based blind | 无任何差异(最后手段) | |
| Q | Inline queries | 子查询注入 |
建议:先用 --technique EU 快速检测,失败再加 B,最后才试 T。
Phase 3: 数据提取
实战速查
| 场景 | 命令关键参数 | |
|---|---|---|
| 快速检测 | --technique EU --level 1 --risk 1 | |
| 深度检测 | --level 5 --risk 3 | |
| POST 表单 | --data 'param1=val1¶m2=val2' | |
| Cookie 注入 | --cookie 'x=1' --level 3 | |
| WAF 环境 | --tamper=space2comment,between --random-agent | |
| 读 flag 文件 | --file-read=/flag.txt | |
| 写 webshell | --file-write=shell.php --file-dest=/var/www/html/ | |
| 拿系统 shell | --os-shell | |
| 二次注入 | --second-url URL | |
| 搜索 flag | --search -T flag 或 --search -C flag |
注意事项
--batch自动选择默认答案(必加,agent 无法交互)--risk 3可能执行 UPDATE/DELETE,有风险环境慎用timeout 480最多跑 8 分钟,超时检查已有结果- sqlmap 会缓存结果,重跑同目标用
--flush-session清除缓存 - 如果 sqlmap 检测不到注入但手工确认存在 → 用
--prefix和--suffix手动指定闭合
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/tool/sqlmap-advanced/SKILL.md
Popularity
- Repository stars
- 1,555
- Repository forks
- 228
- 7-day trend score
- 37
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/wgpsec/aboutsecurity/sqlmap-advanced)