How art049/simple-buffer-overflow-server works
This is a small C stack-buffer-overflow challenge, not a network server in the sampled runtime: main() calls an interactive echo loop that reads into a 20-byte stack buffer without a length limit. The README mentions a TCP-server mode, but its implementation is not present in the sampled source, so that capability is not mapped. The challenge’s intended result is control-flow hijacking to run arbitrary code; secretFunction() is a visible demonstration target. The graph shows only behavior supported by main.c.
Main entry points: main.c Echo loop
Components 6
Other components
- User
- Program entry
main.c - Echo loop
main.c - Stack buffer
main.c - Secret function
main.c - Standard I/O
Connections 6
- User → Program entry: runs
- Program entry → Echo loop: calls
- Echo loop → Standard I/O: prompts and reads
- Standard I/O → Stack buffer: input overflows
- Echo loop → Stack buffer: prints contents
- Stack buffer → Secret function: may redirect control