How o-o-overflow/dc2021f-shooow-your-shell-public works
Shooow Your Shell is a multi-architecture shellcode hill-climbing challenge. A team submits hex-encoded shellcode to the service, which checks blocked-byte and progression rules, then tests whether it reads a generated secret under each supported architecture. Successful submissions update the hill history and score. A separate Kubernetes bot synchronizes histories across team pods. The source excerpts show the service’s execution and persistence flow and the bot’s synchronization flow; deployment wiring and the local/remote interaction tools were not sampled, so they are not mapped here.
Main entry points: service.py Challenge service · bot.py History sync bot · shuffl.c Sandbox launcher · runner.c Shellcode runner
Components 15
Challenge service
- Challenge service
service/service.py - Shellcode input
service/service.py - Hill constraints
service/service.py - Secret generation
service/service.py - Hill history
service/service.py - Score output
service/service.py
Sandbox execution
- Sandbox launcher
service/shuffl.c - QEMU emulators
- Shellcode runner
service/runner.c - Submitted shellcode
History synchronization
- History sync bot
syncer/bot.py - Team game pods
- Kubernetes API
- Shared history
Other components
- Submitting team
Connections 16
- Submitting team → Challenge service: submits code
service/service.py - Challenge service → Shellcode input: reads hex
service/service.py - Challenge service → Hill constraints: checks constraints
service/service.py - Challenge service → Secret generation: generates secret
service/service.py - Challenge service → Sandbox launcher: launches tests
service/service.py - Challenge service → Hill history: reads and writes
service/service.py - Challenge service → Score output: writes results
service/service.py - Challenge service → Submitted shellcode: pipes input
service/service.py - Sandbox launcher → QEMU emulators: executes emulator
service/shuffl.c - QEMU emulators → Shellcode runner: runs launcher
- Shellcode runner → Submitted shellcode: executes bytes
service/runner.c - History sync bot → Kubernetes API: queries pods
syncer/bot.py - History sync bot → Team game pods: copies histories
syncer/bot.py - Team game pods → Shared history: provides latest
- History sync bot → Shared history: selects latest
syncer/bot.py - Shared history → Team game pods: distributes history