Skip to content

Commit fa2d305

Browse files
committed
docs: 丰富 🐍snake 的文档, 更新 snake.yml
1 parent f1b56dc commit fa2d305

File tree

10 files changed

+72
-28
lines changed

10 files changed

+72
-28
lines changed

docs/snake.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,41 @@
11
# 🐍 Snake
22

3+
输入项目名称和单位列表,处理数据后获取单位的域名和ip,创建文档用于协作并在飞书群通知。
4+
5+
36
![snake](../images/snake.png)
7+
8+
9+
## 操作步骤
10+
11+
1. 复制 [DSL 连接](https://github.com/din4e/DifyDSL4RedTeam/blob/main/dsl/snake.yml)
12+
13+
![bee step 1](../images/bee-p1.png)
14+
15+
2. `工作室 > 导入 DSL 文件 > URL`
16+
17+
![bee step 2](../images/bee-p2.png)
18+
19+
3. 先引入 [🐝Bee](./bee.md),完成相关配置,输入修改为循环的 `/item`,修改联通和相关失效变量
20+
21+
![snake step 3](../images/snake-p3.png)
22+
23+
4. 配置飞书应用 `app_id``app_asccess_token`并开通相应权限,需要在授权和环境变量中配置
24+
25+
![snake step 4](../images/snake-p4.png)
26+
![snake step 6](../images/snake-p6.png)
27+
![snake step 6.1](../images/snake-p6.1.png)
28+
29+
5. 添加以及机器人 Webhook 地址,需要配置自定义关键词确保消息推送
30+
31+
![snake step 7](../images/snake-p7.png)
32+
![snake step 8](../images/snake-p8.png)
33+
34+
6. 运行!
35+
36+
![snake step 9](../images/snake-p9.png)
37+
38+
## 注意事项
39+
40+
1. [[🐝Bee]](./bee.md) 目前零零信安误报较高;
41+
2. [[🐝Bee]](./bee.md) Hunter、Quake暂不支持大数据量的分页;

dsl/snake.yml

Lines changed: 34 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -265,10 +265,10 @@ workflow:
265265
iteration_id: '1738753249170'
266266
sourceType: iteration-start
267267
targetType: tool
268-
id: 1738753249170start-source-1739000585822-target
268+
id: 1738753249170start-source-1739685639690-target
269269
source: 1738753249170start
270270
sourceHandle: source
271-
target: '1739000585822'
271+
target: '1739685639690'
272272
targetHandle: target
273273
type: custom
274274
zIndex: 1002
@@ -277,8 +277,8 @@ workflow:
277277
iteration_id: '1738753249170'
278278
sourceType: tool
279279
targetType: tool
280-
id: 1739000585822-source-1738753355371-target
281-
source: '1739000585822'
280+
id: 1739685639690-source-1738753355371-target
281+
source: '1739685639690'
282282
sourceHandle: source
283283
target: '1738753355371'
284284
targetHandle: target
@@ -348,12 +348,19 @@ workflow:
348348
completion_params:
349349
temperature: 0.7
350350
mode: chat
351-
name: deepseek-chat
352-
provider: deepseek
351+
name: Qwen/Qwen2-VL-72B-Instruct
352+
provider: siliconflow
353353
prompt_template:
354354
- id: f57dfc70-8b48-40f6-baa4-a8086fdb20de
355355
role: system
356-
text: 将{{#1738747046064.target_list#}}的单位名输出,去除序号等并使用“,”分割后输出。
356+
text: '将输入字符中的单位名整理出来,要求如下:
357+
358+
1. 只包含完整的单位名称或者企业名称;
359+
360+
2. 去除序号等并使用“,”分割后输出。'
361+
- id: 05d8f266-fd2a-4c25-8052-689278480ddf
362+
role: user
363+
text: '{{#1738747046064.target_list#}}'
357364
selected: false
358365
title: 目标清单处理
359366
type: llm
@@ -368,7 +375,7 @@ workflow:
368375
positionAbsolute:
369376
x: 939
370377
y: 333
371-
selected: false
378+
selected: true
372379
sourcePosition: right
373380
targetPosition: left
374381
type: custom
@@ -478,7 +485,7 @@ workflow:
478485
tool_parameters:
479486
content:
480487
type: mixed
481-
value: '{{#1738753249170.item#}} {{#1738753249170.index#}}{{#1739000585822.text#}}'
488+
value: '{{#1739685639690.text#}}'
482489
folder_token:
483490
type: mixed
484491
value: '{{#1738810417484.folder_token#}}'
@@ -808,10 +815,10 @@ workflow:
808815
provider_id: feishu
809816
provider_name: feishu
810817
provider_type: builtin
811-
selected: true
818+
selected: false
812819
title: 发送群消息
813820
tool_configurations:
814-
hook_key: {{}}
821+
hook_key: d3e*********************************
815822
tool_label: 发送群消息
816823
tool_name: feishu_group_bot
817824
tool_parameters:
@@ -827,7 +834,7 @@ workflow:
827834
positionAbsolute:
828835
x: 3178
829836
y: 333
830-
selected: true
837+
selected: false
831838
sourcePosition: right
832839
targetPosition: left
833840
type: custom
@@ -866,36 +873,35 @@ workflow:
866873
desc: ''
867874
isInIteration: true
868875
iteration_id: '1738753249170'
869-
provider_id: 345be0c3-5f33-4a4f-8e70-2b7047f34df4
870-
provider_name: 小蜜蜂
876+
provider_id: bea0c06f-568a-4627-bba4-67378f9b1d77
877+
provider_name: bee
871878
provider_type: workflow
872879
selected: false
873-
title: bee信息收集
874-
tool_configurations:
875-
target_name: ''
876-
tool_label: 小蜜蜂
877-
tool_name: bee
880+
title: bee
881+
tool_configurations: {}
882+
tool_label: bee
883+
tool_name: get_assets
878884
tool_parameters:
879885
target_name:
880886
type: mixed
881887
value: '{{#1738753249170.item#}}'
882888
type: tool
883-
height: 89
884-
id: '1739000585822'
889+
height: 53
890+
id: '1739685639690'
885891
parentId: '1738753249170'
886892
position:
887-
x: 37.82951526715033
888-
y: 139.35725689694846
893+
x: 95.66526479185814
894+
y: 66.75635633814841
889895
positionAbsolute:
890-
x: 1582.8295152671503
891-
y: 472.35725689694846
896+
x: 1640.6652647918581
897+
y: 399.7563563381484
892898
selected: false
893899
sourcePosition: right
894900
targetPosition: left
895901
type: custom
896902
width: 243
897903
zIndex: 1002
898904
viewport:
899-
x: -1725.7499999999998
900-
y: 280.75
901-
zoom: 0.7
905+
x: -563.4043254371886
906+
y: 0.9458342540011415
907+
zoom: 0.923655537541026

images/snake-p3.png

4.16 MB
Loading

images/snake-p4.png

3.9 MB
Loading

images/snake-p5.png

4.16 MB
Loading

images/snake-p6.1.png

4.03 MB
Loading

images/snake-p6.png

4.15 MB
Loading

images/snake-p7.png

2.19 MB
Loading

images/snake-p8.png

3.77 MB
Loading

images/snake-p9.png

9.93 MB
Loading

0 commit comments

Comments
 (0)