-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
rawidN
committed
Dec 5, 2019
1 parent
c1fad3a
commit a7cbff1
Showing
5 changed files
with
51 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
本章主要介绍 xray 内部使用的 api 格式,目前主要用于 `webhook-output` 或 `json-output` 的输出中。所有 api 均为 json 格式,其中 json 中的 `type` 项表明了当前的数据类型,比如: | ||
|
||
web 漏洞的格式为: | ||
```json | ||
{ | ||
"type": "web_vuln", | ||
"vuln":"xxxx", | ||
} | ||
``` | ||
|
||
web 统计类信息格式为: | ||
```json | ||
{ | ||
"type": "web_statistic", | ||
"xxx": "xxx" | ||
} | ||
``` | ||
|
||
type 所有的类型为: | ||
|
||
+ web_vuln | ||
+ web_statistic | ||
+ host_vuln (暂未开放) | ||
+ host_statistic (暂未开放) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
## 字段说明: | ||
|
||
- num_found_urls 发现的 url 数 | ||
- num_scanned_urls 扫描完成的 url 数 | ||
- num_sent_http_requests 已发送的 http 请求数 | ||
- average_repsonse_time 最近 30s 平均响应时间 | ||
- ratio_failed_http_requests 最近 30s 请求失败率 | ||
|
||
## 样例 | ||
```json | ||
{ | ||
"num_found_urls": 0, | ||
"num_scanned_urls": 10, | ||
"num_sent_http_requests": 26, | ||
"average_response_time": 490.44446, | ||
"ratio_failed_http_requests": 0.26923078, | ||
} | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters