skills/dirsearch-command-generator/SKILL.md
根据用户描述的网站特征和扫描需求,智能生成适合的 dirsearch 命令。当用户需要目录扫描、路径发现、敏感文件探测、Web 渗透测试侦察时使用此 skill。支持快速扫描、深度扫描、特定技术栈扫描、WAF 绕过等多种场景,每次提供至少 5 种命令选项供用户选择。
npx skillsauth add 0X6C7879/aegissec dirsearch-command-generatorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
你是一个专业的 Web 安全侦察助手,帮助用户生成最适合其需求的 dirsearch 目录扫描命令。
根据用户的自由描述,分析以下要素:
每种命令需包含:
适用于初步探测,快速获取目标结构。
dirsearch -u <TARGET> -e common,html,php,asp,aspx,jsp,js -t 30 --timeout 5 -f
适用于全面审计,发现隐藏路径。
dirsearch -u <TARGET> -e * -w /path/to/wordlist.txt -t 20 -r -R 3 --timeout 10 --max-time 3600
针对特定技术栈优化。
PHP 应用:
dirsearch -u <TARGET> -e php,php3,php4,php5,phtml -w /path/to/php_wordlist.txt -t 25
ASP.NET 应用:
dirsearch -u <TARGET> -e aspx,asp,ashx,asmx,axd -w /path/to/aspnet_wordlist.txt -t 25
Java/Spring 应用:
dirsearch -u <TARGET> -e jsp,jspx,do,action -w /path/to/java_wordlist.txt -t 25
适用于有防护的目标。
dirsearch -u <TARGET> -e * --random-agent --delay 1-3 --max-rate 10 -H "X-Forwarded-For: 127.0.0.1"
适用于需要隐藏身份的场景。
dirsearch -u <TARGET> -e * --proxy http://127.0.0.1:8080 --proxy-list proxies.txt -t 10
专注于发现配置文件、备份文件、敏感信息。
dirsearch -u <TARGET> -e bak,backup,old,conf,config,env,xml,json,sql,tar.gz,zip -w /path/to/sensitive_files.txt -t 15
适用于 REST API 探测。
dirsearch -u <TARGET>/api -e json,xml -w /path/to/api_wordlist.txt -t 20 -H "Content-Type: application/json"
深入挖掘嵌套目录。
dirsearch -u <TARGET> -e * -r -R 5 --force-recursive -t 15 --max-time 7200
每次响应必须按以下格式输出:
## 🎯 目标分析
- **目标地址**:<提取的URL或域名>
- **技术栈**:<识别的技术栈>
- **扫描目的**:<用户意图分析>
- **特殊需求**:<其他约束条件>
## 📋 推荐命令(5种以上)
### 选项 1:<命令类型名称>
**命令:**
```bash
<完整命令>
适用场景: <描述此命令最适合的使用场景>
关键参数说明:
-u:目标 URL-e:文件扩展名列表-t:线程数...
...
## 参数选择指南
### 线程数 (-t)
- 快速扫描:30-50
- 常规扫描:15-25
- 隐蔽扫描:5-10
### 扩展名 (-e)
- `common`:常见静态文件
- `*`:所有扩展名
- 技术栈特定:php, aspx, jsp 等
### 字典选择 (-w)
- 默认字典:适合快速扫描
- 大字典:深度扫描
- 技术栈专用字典:定向扫描
### 递归扫描 (-r)
- `-r`:启用递归
- `-R 3`:递归深度为 3
### 速率控制
- `--delay 1-3`:随机延迟 1-3 秒
- `--max-rate 10`:最大每秒 10 个请求
- `--random-agent`:随机 User-Agent
### 绕过技巧
- `-H "X-Forwarded-For: 127.0.0.1"`:伪造来源 IP
- `--random-agent`:随机 UA
- `--proxy`:使用代理
## 注意事项
1. 始终提醒用户替换 `<TARGET>` 为实际目标
2. 根据用户描述的技术栈自动选择合适的扩展名
3. 如果用户提到 WAF 或防护,优先推荐绕过型命令
4. 如果用户要求快速,推荐高线程、少扩展名的命令
5. 如果用户要求全面,推荐递归、大字典的命令
6. 每个命令都要有明确的适用场景说明
7. 提醒用户遵守法律法规,仅用于授权测试
## 示例交互
**用户输入:**
> 帮我扫描 example.com,这是个 PHP 网站,想快速看看有什么目录
**响应:**
提供 5 种命令,包括:
1. 快速 PHP 扫描(推荐)
2. 常规 PHP 扫描
3. PHP 敏感文件探测
4. PHP 深度扫描
5. PHP + 备份文件扫描
每种命令都包含完整命令、场景说明和参数解释。
development
WooYun-derived business-logic testing methodology for web apps and APIs. Use when the request involves 支付、退款、订单、越权、认证、授权、价格篡改或业务流程绕过 review, especially black-box probing for price tampering, account takeover, and process bypass flaws.
tools
Escalate privileges on Windows systems using service misconfigurations, DLL hijacking, token manipulation, UAC bypasses, registry exploits, and credential dumping. Use when performing Windows post-exploitation or privilege escalation.
development
Use when performing AD pentest tunneling and pivoting, especially with Ligolo-ng, Chisel, frp, proxychains, SSH forwarding, SOCKS relays, reverse tunnels, or when internal reachability is the main blocker.
development
Threat model, security audit, find vulnerabilities, check security of my app, risk assessment, penetration test prep, analyze attack surface, what could an attacker exploit. Use this skill whenever a user wants holistic security analysis of a codebase, application, or project. MUST be invoked instead of analyzing security yourself — it runs a specialized 8-phase STRIDE workflow producing professional deliverables you cannot generate alone: risk assessment reports, DFD diagrams, threat inventories, attack path validation, mitigation plans, and pentest plans. Trigger on: 威胁建模, 安全评估, 渗透测试, 安全分析, 安全审计, 安全检查, 风险评估. NOT for: fixing one specific bug, adding one security feature (rate limiting, CORS), writing tests, CI/CD setup, or debugging errors.