docs:增加选择检测模式的使用说明
Some checks failed
Python application test / build (pull_request) Failing after 14m18s
Some checks failed
Python application test / build (pull_request) Failing after 14m18s
This commit is contained in:
@@ -35,6 +35,7 @@ python requirements_detection.py <vulnerabilities_file> <requirements_file> -o <
|
|||||||
- `<requirements_file>`: 项目的 `requirements.txt` 文件路径。
|
- `<requirements_file>`: 项目的 `requirements.txt` 文件路径。
|
||||||
- `<output_file>`: 指定输出结果的文件路径和格式,支持的格式有 `.txt`, `.md`, `.html`, `.pdf`。
|
- `<output_file>`: 指定输出结果的文件路径和格式,支持的格式有 `.txt`, `.md`, `.html`, `.pdf`。
|
||||||
|
|
||||||
|
|
||||||
**示例**:
|
**示例**:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@@ -46,18 +47,19 @@ python requirements_detection.py vulnerabilities_data.txt requirements.txt -o ou
|
|||||||
**命令格式**:
|
**命令格式**:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
python backdoor_detection.py <code_path> -o <output_file>
|
python backdoor_detection.py <code_path> -o <output_file> -m <mode>
|
||||||
```
|
```
|
||||||
|
|
||||||
**参数说明**:
|
**参数说明**:
|
||||||
|
|
||||||
- `<code_path>`: 代码文件或目录的路径。
|
- `<code_path>`: 代码文件或目录的路径。
|
||||||
- `<output_file>`: 指定输出结果的文件路径和格式,支持的格式有 `.txt`, `.md`, `.html`, `.pdf`。
|
- `<output_file>`: 指定输出结果的文件路径和格式,支持的格式有 `.txt`, `.md`, `.html`, `.pdf`。
|
||||||
|
- `<mode>`: 指定检测模式,目前支持的模式有 `regex` 和 `llm`。
|
||||||
|
|
||||||
**示例**:
|
**示例**:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
python backdoor_detection.py ./src -o output/report.pdf
|
python backdoor_detection.py ./src -o output/report.pdf -m regex
|
||||||
```
|
```
|
||||||
|
|
||||||
## 结果解读
|
## 结果解读
|
||||||
|
|||||||
Reference in New Issue
Block a user