A minimal HTTP server written in x86-64 Linux assembly as part of the pwn.college "Building a Web Server" module.
- Binds to 0.0.0.0:80
- Forks on each incoming connection to handle requests concurrently
- Handles GET requests by reading and returning file contents
- Handles POST requests by writing the request body to the specified file
as -o web_server.o web_server.s
ld -o web_server web_server.o
sudo ./web_server# GET
curl http://localhost/tmp/myfile
# POST
curl -X POST http://localhost/tmp/myfile -d "hello world"Requires root (or CAP_NET_BIND_SERVICE) to bind to port 80. No dependencies, no libc — just raw syscalls.