TUM CTF 2016::lolcpp::pwn-250

Posted by and filed under TUM CTF 2016.

We were given the source code for this challenge. #include <cstdint> #include <cstdio> #include <cstdlib> #include <cstring> #include <functional> #include <memory> #include <unistd.h> constexpr size_t entry_len = 0x50; void strip_newline(char *buf, size_t size) { char *p = &size[buf]; while (p >= buf) { if (0 == *p or ‘\n’ == *p) { *p = 0;… Read more »