Skip to content

Commit d6e90f9

Browse files
authored
Update README.md
1 parent 29dcd78 commit d6e90f9

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ config.yaml 中的 ServerUrl 需要在云函数配置好后才能配置,请看
1414

1515
## 云函数配置
1616
控制台搜索云函数,进入云函数控制台后,新建函数
17-
![img.png](img.png)
17+
![img](https://github.com/shadowabi/Serverless_PortScan/assets/50265741/a7eed0d2-7ccc-4eb3-9acf-a4166bf57ab7)
1818
点击从头开始,选择事件函数,运行环境选择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)
2020
在函数代码中中复制粘贴下面的代码:
2121

2222
```python
@@ -79,18 +79,18 @@ def main_handler(event, context):
7979
results_per_thread.clear()
8080
return a
8181
```
82-
![img_2.png](img_2.png)
82+
![img_2](https://github.com/shadowabi/Serverless_PortScan/assets/50265741/2b17267a-484b-4642-a58a-fa87eabe3a9e)
8383
往下拉,点击高级配置,设置执行超时时间为 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)
8585
基础配置如上,最后勾选“我已阅读并同意 《腾讯云云函数网络服务协议》”,点击完成。
8686

8787
创建完毕后,会弹出下面界面:
88-
![img_5.png](img_5.png)
88+
![img_5](https://github.com/shadowabi/Serverless_PortScan/assets/50265741/f1774aa3-586d-43f4-862e-28d3aa6203ee)
8989
点留在本页,然后点函数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)
9292
点击提交后,会生成一个地址
93-
![img_8.png](img_8.png)
93+
![img_8](https://github.com/shadowabi/Serverless_PortScan/assets/50265741/26f1917f-066f-46e3-8d90-219af185a127)
9494
例如这里:
9595
```
9696
https://1304875526-enqewmqsrf-hk.scf.tencentcs.com

0 commit comments

Comments
 (0)