https://github.com/typicalam/ilfs25
Short and compact qcow image builder for the CTF talk at ILFS 2025
https://github.com/typicalam/ilfs25
Last synced: 9 months ago
JSON representation
Short and compact qcow image builder for the CTF talk at ILFS 2025
- Host: GitHub
- URL: https://github.com/typicalam/ilfs25
- Owner: TypicalAM
- License: mit
- Created: 2025-02-10T19:17:18.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-25T13:47:31.000Z (12 months ago)
- Last Synced: 2025-03-25T14:40:08.833Z (12 months ago)
- Language: Nix
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Basic CTF image builder for ILFS25
## Presentation
```sh
go install github.com/maaslalani/slides@latest
slides presentation.md
```
## Running
```sh
docker network create magic-network
docker run --rm -it --name builder -p 8080:8080 --network magic-network --device /dev/kvm:/dev/kvm -v ./blueprints:/app/output typicalam/basic-builder:latest
```
and
```sh
docker run --rm -it -p 22:22 --network magic-network --device /dev/kvm:/dev/kvm -v ./blueprints:/blueprint -v ./working-machines:/output typicalam/basic-runner:latest-first # kill with pkill sshd since sshd doesn't like ctrl+c
```
or
```sh
docker run --rm -it -p 22:22 --network magic-network --device /dev/kvm:/dev/kvm -v ./blueprints:/blueprint -v ./working-machines:/output typicalam/basic-runner:latest-second # kill with pkill sshd since sshd doesn't like ctrl+c
```
and then ssh into it:
```sh
ssh student@localhost # pass: student
```
You can also use the builder directly with a NixOS system module, for example with `curl`:
```sh
curl --data-binary @basic-runner/first.nix localhost:8080
# {"filename": "20927e1cd4b9b4a730ae6b96904d3802a847f5c36ffae74ab556b5308d7c6c96.qcow2"}
```