-
-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat(v0.17.0): Use PlatformProxy for private network accessing & traf…
…fic capturing (#134)
- Loading branch information
Showing
110 changed files
with
5,304 additions
and
1,852 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,6 @@ | |
"deployment": "部署", | ||
"guide": "使用指南", | ||
"issue": "常见问题", | ||
"thanks": "致谢" | ||
"thanks": "致谢", | ||
"changelog": "更新日志" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Callout } from "nextra-theme-docs"; | ||
|
||
# 更新日志 | ||
|
||
## v0.17 | ||
|
||
**Break Changes** | ||
|
||
- **将原有 `uploads` 目录移动至 `files/uploads`,移除了此目录的配置项,更改了日志存储位置** | ||
|
||
更新步骤:将原有 `uploads` 目录移动至 `files/uploads`,并重新挂载相关目录,删除 `uploads` 目录的配置项和原有 `log` 目录 | ||
|
||
## v0.16-v0.1 | ||
|
||
见 Release 记录:https://github.com/GZTimeWalker/GZCTF/releases |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"challenge": "赛题配置", | ||
"dynamic-flag": "动态 flag" | ||
"dynamic-flag": "动态 flag", | ||
"platform-proxy": "平台流量代理" | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import { Callout } from "nextra-theme-docs"; | ||
|
||
# 平台代理 | ||
|
||
GZCTF 自带对于流量的 WebSocket-TCP 转发功能和对应的流量记录能力,可以通过相关配置项进行开启。 | ||
|
||
## 配置 | ||
|
||
在 `appsettings.json` 中,找到 `ContainerProvider` 节点,进行如下配置: | ||
|
||
```json | ||
{ | ||
"ContainerProvider": { | ||
"PortMappingType": "PlatformProxy", | ||
"EnableTrafficCapture": false | ||
} | ||
} | ||
``` | ||
|
||
## 使用 | ||
|
||
在平台代理开启后,可以使用平台的 `/api/proxy/{guid}` 接口进行流量转发。 | ||
|
||
可用客户端:[WebSocketReflectorX](https://github.com/XDSEC/WebSocketReflectorX) 进行本地端口代理,从而进行无感交互。 | ||
|
||
## 注意事项 | ||
|
||
采用 `Docker` 单机作为后端且使用 `PlatformProxy` 端口映射类型时,为了使得 GZCTF 顺利访问题目容器,需要额外手动创建一个网络: | ||
|
||
```bash | ||
docker network create challenges -d bridge --subnet 192.168.133.0/24 | ||
``` | ||
|
||
设置配置项 **ChallengeNetwork** 为对应的网络名称,并需要在 docker-compose.yml 中桥接外部网络,例如: | ||
|
||
```yaml | ||
version: "3.7" | ||
services: | ||
gzctf: | ||
... | ||
networks: | ||
- default | ||
- challenges | ||
|
||
networks: | ||
challenges: | ||
external: true | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.