Can't Buffer overflow a simple 'recv' function
I have the following C Socket Server, I was trying to learn about ROP programming so I created this small program, but when I try `pwn cyclic 1025| nc localhost 4444` I receive nothing, I even tried to send 2000, 5000 but with no response. Anyway I can receive the normal 'ok' message when sending the 1024 bytes. I have tried disabling canaries by passing `-fno-stack-protector` but also no response. The server in all cases prints the received 1024 (even if I sent more bytes). But no "Stack smash detected", Segmentation Fault or anything #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <arpa/inet.h> #define PORT 4444 void handle_client(int client_fd) {
…