docs:增加选择检测模式的使用说明
Some checks failed
Python application test / build (pull_request) Failing after 14m18s

This commit is contained in:
2024-04-28 22:06:11 +08:00
parent 18454a0228
commit b3f4a77a73

View File

@@ -26,7 +26,7 @@ pip install packaging reportlab
**命令格式**
```bash
python requirements_detection.py <vulnerabilities_file> <requirements_file> -o <output_file>
python requirements_detection.py <vulnerabilities_file> <requirements_file> -o <output_file>
```
**参数说明**
@@ -35,6 +35,7 @@ python requirements_detection.py <vulnerabilities_file> <requirements_file> -o <
- `<requirements_file>`: 项目的 `requirements.txt` 文件路径。
- `<output_file>`: 指定输出结果的文件路径和格式,支持的格式有 `.txt`, `.md`, `.html`, `.pdf`
**示例**
```bash
@@ -46,18 +47,19 @@ python requirements_detection.py vulnerabilities_data.txt requirements.txt -o ou
**命令格式**
```bash
python backdoor_detection.py <code_path> -o <output_file>
python backdoor_detection.py <code_path> -o <output_file> -m <mode>
```
**参数说明**
- `<code_path>`: 代码文件或目录的路径。
- `<output_file>`: 指定输出结果的文件路径和格式,支持的格式有 `.txt`, `.md`, `.html`, `.pdf`
- `<mode>`: 指定检测模式,目前支持的模式有 `regex``llm`
**示例**
```bash
python backdoor_detection.py ./src -o output/report.pdf
python backdoor_detection.py ./src -o output/report.pdf -m regex
```
## 结果解读