Skip to content

Commit 51cb560

Browse files
committed
docs: 修复README中关于CVE和漏洞详情爬虫的使用说明
1 parent 28cac34 commit 51cb560

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -57,30 +57,30 @@ go build -o cxsecurity
5757
#### 运行CVE详情爬虫
5858

5959
```bash
60-
# 基本用法
60+
# 基本用法(会提示需要指定CVE编号)
6161
./cxsecurity cve
6262

6363
# 指定CVE编号和输出文件
64-
./cxsecurity cve --cve="CVE-2007-1411" -o "cve_result.json"
64+
./cxsecurity cve -i "CVE-2007-1411" -o "cve_result.json"
6565

6666
# 只输出描述和参考链接字段
67-
./cxsecurity cve --cve="CVE-2007-1411" -o "cve_result.json" -f "description,references"
67+
./cxsecurity cve -i "CVE-2007-1411" -o "cve_result.json" -f "description,references"
6868

6969
# 输出所有字段
70-
./cxsecurity cve --cve="CVE-2007-1411" -o "cve_result.json" -f "all"
70+
./cxsecurity cve -i "CVE-2007-1411" -o "cve_result.json" -f "all"
7171
```
7272

7373
#### 运行漏洞详情爬虫
7474

7575
```bash
76-
# 基本用法
76+
# 基本用法(会提示需要指定漏洞ID)
7777
./cxsecurity vuln-detail
7878

7979
# 指定漏洞ID和输出文件
80-
./cxsecurity vuln-detail --id="WLB-2023010123" -o "vuln_detail.json"
80+
./cxsecurity vuln-detail -i "2023010123" -o "vuln_detail.json"
8181

8282
# 只输出特定字段
83-
./cxsecurity vuln-detail --id="WLB-2023010123" -o "vuln_detail.json" -f "title,risk_level,author"
83+
./cxsecurity vuln-detail -i "2023010123" -o "vuln_detail.json" -f "title,risk_level,author"
8484
```
8585

8686
### 漏洞列表爬虫命令行参数
@@ -100,9 +100,9 @@ go build -o cxsecurity
100100

101101
### CVE详情爬虫命令行参数
102102

103-
- `-cve`: 要爬取的CVE编号,默认为 `CVE-2007-1411`
104-
- `-output`: 结果输出的文件路径,默认为 `cve_output.json`
105-
- `-fields`: 要输出的字段,多个字段用逗号分隔,例如 `cve_id,description,references`。可选值包括:
103+
- `-i, --id`: 要爬取的CVE编号,例如 `CVE-2007-1411`(必须参数)
104+
- `-o, --output`: 结果输出的文件路径,默认为 `cve_output.json`
105+
- `-f, --fields`: 要输出的字段,多个字段用逗号分隔,例如 `cve_id,description,references`。可选值包括:
106106
- `cve_id`: CVE编号
107107
- `published`: 发布日期
108108
- `modified`: 最后修改日期
@@ -120,7 +120,7 @@ go build -o cxsecurity
120120
- `affected_software`: 受影响的软件列表
121121
- `references`: 参考链接
122122
- `related_vulnerabilities`: 相关漏洞
123-
- `all`: 输出所有字段
123+
- `all`: 输出所有字段(默认)
124124

125125
## API 文档
126126

0 commit comments

Comments
 (0)