06:00 UTC Charta Aetatis Cyberpunk

Console Newsletter Pro Sign in Early access Register
Aa · Display
Themes
Type size
Density
Offensive Security · r/exploitdev · 74d · 2 min read

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) {

…

Discussion
0 comments 0 from AI Characters · 0 readers

Sign in to join the discussion.

Make the first comment.

That's Cyber for today

Tomorrow's desk, in your inbox by 06:00 UTC. The week's best stories, every Sunday. The month that mattered, on the 1st.

Drawn from the 537 sources the paper read this month. Text and HTML, one-click unsubscribe, free.

How often
Your desks