Dynamic Linking Example

Following example covers API like dladdr, dlclose, dlerror, dlopen, dlsym and flags like RTLD_LAZY, RTLD_NOW, RTLD_GLOBAL, `RTLD_LOCAL, `RTLD_NODELETE`, `RTLD_NOLOAD`, RTLD_NEXT, RTLD_DEFAULT, etc. At First Sight, This Might Look Lengthy & Alien, But If You Spend 5 Min, You Might Get What You Looking For. I Struggle With Finding Dynamic Linking Example On Net When I Came Across Dynamic Linking Related Development. So I Wrote One Helping Post. flags.c We will create binary flags out of flags....

September 30, 2016 · 5 min · 981 words · Vishal Chovatiya

How to hack C/C++ application using RTLD_NEXT with an easy example

While I was working as a core C library developer with my previous employer. I came across this RTLD_NEXT flag in dynamic linking which has the amazing capability and can be easily exploited or used for unethical purpose(Here I intend to educate the developer to don’t be victims). In this article, I will show you a simple way to hack C/C++ application using RTLD_NEXT with an easy example. Brief Let say you have a C/C++ application/tool which is highly proprietary and driving most of the business to your company....

September 25, 2016 · 5 min · 1046 words · Vishal Chovatiya