Skip to content

Commit 99ae3cb

Browse files
committed
优化Makefile
1 parent d21cea8 commit 99ae3cb

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ BUILD_DIR = bin
44
default: build
55

66
build:
7+
go mod tidy
78
env CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build $(BUILD_FLAG) -o $(BUILD_DIR)/Serverless_PortScan.exe main/main.go
89
env CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build $(BUILD_FLAG) -o $(BUILD_DIR)/Serverless_PortScan main/main.go
910

README.md

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
11
# Serverless_PortScan
22
利用云函数实现端口扫描
33

4+
## 安装
5+
6+
下载release中的二进制文件使用
7+
8+
或使用Makefile进行编译二进制文件后使用
9+
410
## 配置
511
当首次运行Serverless_PortScan时,会检测config.json文件是否存在,不存在则会自动创建
612

713
config.json的填写内容应该如下:
814
```
915
{
1016
"ServerUrl":"http://",
11-
"PortList":"21,22,23,25,80,135,139,389,443,445,873,888,1433,1521,2049,2181,2375,2379,3306,3389,3690,5432,5900,5985,5986,6379,6443,7001,8000,8061,8080,8089,8161,8500,8443,8649,8888,9080,10250,10255,11211,13389,16379,27017,27019,23791,30000,50070,63791"
17+
"PortList":"21,22,23,25,80,135,139,389,443,445,1433,1521,3306,3389"
1218
}
1319
```
14-
ServerUrl为你的云函数地址
20+
ServerUrl为你的云函数地址,PortList为默认扫描的端口列表
1521

1622

1723
## 云函数配置
@@ -64,11 +70,6 @@ def main_handler(event, context):
6470
![image](https://github.com/shadowabi/Serverless_PortScan/assets/50265741/899e0445-dd7c-4c2b-9bdd-26c248fa0eb6)
6571

6672

67-
## 安装
68-
下载release中的对应版本
69-
70-
使用Makefile进行编译
71-
7273

7374
## 用法
7475
```

0 commit comments

Comments
 (0)