Commit d6e90f9 1 parent 29dcd78 commit d6e90f9 Copy full SHA for d6e90f9
File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,9 @@ config.yaml 中的 ServerUrl 需要在云函数配置好后才能配置,请看
14
14
15
15
## 云函数配置
16
16
控制台搜索云函数,进入云函数控制台后,新建函数
17
- ![ img.png ] ( img.png )
17
+ ![ img] ( https://github.com/shadowabi/Serverless_PortScan/assets/50265741/a7eed0d2-7ccc-4eb3-9acf-a4166bf57ab7 )
18
18
点击从头开始,选择事件函数,运行环境选择python3.x(都可以)
19
- ![ img_1.png ] ( img_1.png )
19
+ ![ img_1] ( https://github.com/shadowabi/Serverless_PortScan/assets/50265741/555cfd63-5a5a-40a1-9d15-4ee5d791c6ff )
20
20
在函数代码中中复制粘贴下面的代码:
21
21
22
22
``` python
@@ -79,18 +79,18 @@ def main_handler(event, context):
79
79
results_per_thread.clear()
80
80
return a
81
81
```
82
- ![ img_2.png ] ( img_2.png )
82
+ ![ img_2] ( https://github.com/shadowabi/Serverless_PortScan/assets/50265741/2b17267a-484b-4642-a58a-fa87eabe3a9e )
83
83
往下拉,点击高级配置,设置执行超时时间为 900 秒,也可以自定义一个时间。内存选择 384MB 或以下即可(如果扫描端口过多会爆内存)
84
- ![ img_4.png ] ( img_4.png )
84
+ ![ img_3 ] ( https://github.com/shadowabi/Serverless_PortScan/assets/50265741/862006a0-cbe5-4d8b-a1e3-200bdf164160 )
85
85
基础配置如上,最后勾选“我已阅读并同意 《腾讯云云函数网络服务协议》”,点击完成。
86
86
87
87
创建完毕后,会弹出下面界面:
88
- ![ img_5.png ] ( img_5.png )
88
+ ![ img_5] ( https://github.com/shadowabi/Serverless_PortScan/assets/50265741/f1774aa3-586d-43f4-862e-28d3aa6203ee )
89
89
点留在本页,然后点函数URL,创建URL,启用公网访问
90
- ![ img_6.png ] ( img_6.png )
91
- ![ img_7.png ] ( img_7.png )
90
+ ![ img_6] ( https://github.com/shadowabi/Serverless_PortScan/assets/50265741/6d084286-226f-45af-9156-faf2dee413f7 )
91
+ ![ img_7] ( https://github.com/shadowabi/Serverless_PortScan/assets/50265741/e64147a9-23cc-40c9-bc81-8694768b086e )
92
92
点击提交后,会生成一个地址
93
- ![ img_8.png ] ( img_8.png )
93
+ ![ img_8] ( https://github.com/shadowabi/Serverless_PortScan/assets/50265741/26f1917f-066f-46e3-8d90-219af185a127 )
94
94
例如这里:
95
95
```
96
96
https://1304875526-enqewmqsrf-hk.scf.tencentcs.com
You can’t perform that action at this time.
0 commit comments