4.3 KiB
DurkaHelper
English | Русский
Offline Defense Toolkit for Attack/Defense CTF: review source, investigate traffic, verify patches and run the team's shared tools from one repository.
What does what
| Tool | Use it for |
|---|---|
| DurkaHelper scanner | Find suspicious code/configuration in a local source copy and open a fix guide. It does not scan remote hosts or apply patches. |
| Packmate | Read requests/responses and search traffic. Closed PCAP files on Docker Desktop; LIVE capture on an approved Linux observation point. |
| S4DFarm | Collect flags, track their status and submit them to the competition. |
| Neo | Distribute team scripts across workers and targets; send discovered flags to S4DFarm. |
Protected services stay on the Vulnbox. Apply reviewed patches there through your normal service deployment procedure. The farm handles flags, not patch distribution.
Quick start
For source review, only Python 3.10+ is needed; no pip installation:
git clone https://github.com/Nyarlad/DurkaHelper.git
cd DurkaHelper
python3 durka.py scan /path/to/service --patches
Exit 1 means findings to review. Start with one service and the fix catalog. A finding is a review signal, not proof of a vulnerability.
To host the shared tools, start Docker Desktop on macOS or Docker Engine with Compose on Linux:
python3 durka.py init
Edit local/durka.json: your LAN bind address, team/service addresses, flag format and competition submission settings. Passwords and the Neo key are generated for you. Keep this file private; local/ is ignored by Git.
Use an actual Ethernet IPv4 for teammate access and native Neo workers. Loopback is suitable for a laptop-only demo with the bundled worker.
python3 durka.py setup
python3 durka.py up
python3 durka.py status
setup downloads pinned sources/images and builds the stack; do it before going offline. up starts the farm, Neo coordinator and Packmate. Enable script execution and flag submission separately when ready:
python3 durka.py worker
python3 durka.py submit
Read the administrator setup before submission. The maintained farm adapter is ructf_http; another protocol needs a compatible adapter. Packmate uses amd64 emulation on Apple Silicon: rehearse on the actual laptop.
During the game
- Admin starts the tools and shares LAN URLs and credentials.
- Defenders copy service source, scan it and investigate suspicious traffic.
- Apply a small patch to the Vulnbox, check the service/checker and repeat the scan.
- Script writers test their work, submit it to Neo and watch flags in S4DFarm.
- Admin watches availability, disk and backups. Finish with
python3 durka.py down.
Main routes: administrator workflows 01–05, participant guide, printable admin cheat sheet. References: documentation index.
Find, fix and verify
294 sections, 174 scanner rules. Counts describe review recipes and signals, not distinct verified exploits.
| Language / layer | Sections |
|---|---|
| Python | 40 |
| JavaScript / TypeScript | 28 |
| PHP | 23 |
| Go | 19 |
| Java | 18 |
| C# / .NET | 20 |
| C / C++ | 28 |
| Ruby / Rails | 18 |
| Rust | 18 |
| SQL / databases | 18 |
| Configuration / trust boundaries | 64 |
Development
Tests and synthetic fixtures are for contributors; participants need not run the full suite before each game action.
python3 -m unittest discover -s tests
python3 scripts/scanner_coverage.py --check
Contributing · Security · Changelog · Capabilities
Use authorized systems and keep credentials, source, flags and captures private. DurkaHelper is MIT licensed; external tools keep their own licenses.