This project contains two simple implementations in pure C:
- Basic HTTP/1.1 Server β Handles simple HTTP GET requests. You can request the filename with extension that is staying on the server machine. Also, you can whitelist your ip in txt file and specify the filename when starting the application. Don't worry, the HTTP server will hide this file by returning 404 if the hacker is trying to get it.
- TCP Server β A minimal TCP Echo server demonstrating basic socket communication.
- GCC Compiler
- Linux (Tested on Kali Linux & WSL)
- Basic knowledge of networking sockets
cd HTTPclient
gcc http_server.c -o http_server
./http_server <path-to-ip-whitelist-txt-file>