Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Eadom/ctf_xinetd
A docker repository for deploying pwnable challenges in CTF
https://github.com/Eadom/ctf_xinetd
ctf
Last synced: 21 days ago
JSON representation
A docker repository for deploying pwnable challenges in CTF
- Host: GitHub
- URL: https://github.com/Eadom/ctf_xinetd
- Owner: Eadom
- Created: 2016-03-21T14:17:32.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-19T02:59:45.000Z (about 6 years ago)
- Last Synced: 2024-08-05T17:25:06.259Z (4 months ago)
- Topics: ctf
- Language: Dockerfile
- Homepage:
- Size: 12.7 KB
- Stars: 385
- Watchers: 9
- Forks: 76
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-hacking-lists - Eadom/ctf_xinetd - A docker repository for deploying pwnable challenges in CTF (Dockerfile)
README
# ctf_xinetd
> A docker repository for deploying CTF challenges
## Configuration
Put files to floder `bin`. They'll be copied to /home/ctf. **Update the flag** at the same time.
Edit `ctf.xinetd`. replace `./helloworld` to your command.
You can also edit `Dockerfile, ctf.xinetd, start.sh` to custom your environment.
## Build
```bash
docker build -t "helloworld" .
```DO NOT use *bin* as challenge's name
## Run
```bash
docker run -d -p "0.0.0.0:pub_port:9999" -h "helloworld" --name="helloworld" helloworld
````pub_port` is the port you want to expose to the public network.
## Capture traffic
If you want to capture challenge traffic, just run `tcpdump` on the host. Here is an example.
```bash
tcpdump -w helloworld.pcap -i eth0 port pub_port
```