Files
geedge-jira/md/OMPUB-1353.md

73 lines
2.0 KiB
Markdown
Raw Permalink Normal View History

2025-09-14 21:52:36 +00:00
# 业主有关为Self-defined Attribute功能提供样例脚本的需求
| ID | Creation Date | Assignee | Status |
|----|----------------|----------|--------|
| OMPUB-1353 | 2024-07-04T19:54:26.000+0800 | 杨威 | 完成 |
---
业主希望通过我们提供一个lua样例脚本之后来自行编辑该脚本实现Self-defined Attribute的功能。
建议为业主提供一个lua样例脚本
1.该脚本仅能提取某个常见协议的12个字段。
2.运行时不会对生产环境产生较大的负载。
该样例给出后会告知运行脚本后引入的风险和产生的后果。
**fengweihao** commented on *2024-07-10T15:18:02.787+0800*:
Lua脚本功能
* 从数据包中根据特征提取QQ号
使用方式:
* 上传Lua脚本
!image-2024-07-10-15-11-46-817.png|width=467,height=325!
* 创建自定义特征
            !image-2024-07-10-15-13-02-831.png|width=457,height=313!
* 创建自定义APP
!image-2024-07-10-15-15-09-322.png|width=457,height=328!
* 查看命中结果:
        !image-2024-07-10-15-17-31-258.png|width=476,height=227!
---
2025-09-14 22:26:17 +00:00
# Attachments
2025-09-14 21:52:36 +00:00
2025-09-14 22:26:17 +00:00
Attachment: extract_qq_id.lua
2025-09-14 22:27:11 +00:00
2025-09-14 22:26:17 +00:00
[extract_qq_id.lua](https://gfwleak.exec.li/admin/geedge-jira/raw/branch/master/attachment/59885/extract_qq_id.lua)
2025-09-14 21:52:36 +00:00
2025-09-14 22:26:17 +00:00
Attachment: image-2024-07-10-15-11-46-817.png
2025-09-14 22:27:11 +00:00
2025-09-14 22:26:17 +00:00
![image-2024-07-10-15-11-46-817.png](https://gfwleak.exec.li/admin/geedge-jira/raw/branch/master/attachment/59887/image-2024-07-10-15-11-46-817.png)
2025-09-14 21:52:36 +00:00
2025-09-14 22:26:17 +00:00
Attachment: image-2024-07-10-15-13-02-831.png
2025-09-14 22:27:11 +00:00
2025-09-14 22:26:17 +00:00
![image-2024-07-10-15-13-02-831.png](https://gfwleak.exec.li/admin/geedge-jira/raw/branch/master/attachment/59890/image-2024-07-10-15-13-02-831.png)
2025-09-14 21:52:36 +00:00
2025-09-14 22:26:17 +00:00
Attachment: image-2024-07-10-15-15-09-322.png
2025-09-14 22:27:11 +00:00
2025-09-14 22:26:17 +00:00
![image-2024-07-10-15-15-09-322.png](https://gfwleak.exec.li/admin/geedge-jira/raw/branch/master/attachment/59891/image-2024-07-10-15-15-09-322.png)
Attachment: image-2024-07-10-15-17-31-258.png
2025-09-14 22:27:11 +00:00
2025-09-14 22:26:17 +00:00
![image-2024-07-10-15-17-31-258.png](https://gfwleak.exec.li/admin/geedge-jira/raw/branch/master/attachment/59893/image-2024-07-10-15-17-31-258.png)
2025-09-14 21:52:36 +00:00