https://github.com/aaltgod/beta
Simple HTTP proxy. Created for Attack/Defense usage.
https://github.com/aaltgod/beta
attack-defense beta ctf networking proxy rust
Last synced: 4 months ago
JSON representation
Simple HTTP proxy. Created for Attack/Defense usage.
- Host: GitHub
- URL: https://github.com/aaltgod/beta
- Owner: aaltgod
- License: mit
- Created: 2022-11-21T20:44:58.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2025-02-15T20:21:26.000Z (11 months ago)
- Last Synced: 2025-02-15T21:24:15.144Z (11 months ago)
- Topics: attack-defense, beta, ctf, networking, proxy, rust
- Language: Rust
- Homepage:
- Size: 159 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# beta
Simple proxy for Attack/Defense usage.
## English | [Русский](https://github.com/aaltgod/beta/blob/master/README_RU.md)
## Description
- Redirects traffic to the specified address of the service (supposed to be patched);
- Carefully replaces the flags in the traffic so that the checker has a status of OK, while the patched service has dummy flags.
The functionality is graphically represented below:

## Startup
- Configure `.env`;
- Configure `config.yaml`. For example, there is service port `5005`, patched service is on address `10.136.179.132`, so the config line should be:
```yml
- { team_host: 10.136.179.132, port: 5005 }
```
- Set up traffic redirection to `beta` from the specified port. For example, if you need to redirect traffic from port `5005` using iptables, you would need to write:
```sh
iptables -t nat -A PREROUTING -p tcp --dport 5005 -j REDIRECT --to-port 29220
```
where `29220` is the default port for `beta`;
- Run
```sh
docker compose -f docker-compose.yaml up --build -d
```