Tag: macos

Simple assembly program on MacOS

While going through shellcoding course on Pantester Academy I though I would like to check how the code in the course would look like on MacOS. On Linux this was pretty straightforward: Set one syscall (mov rax, 1), to write to standard output (mov rdi, 1), enter hello_world string, enter its length, call, set another […]

How do libraries work? Part 2

simple-c-code

In the previous part we’ve taken a quick look on how to create a dynamic library in MacOS system that would be used as dependent library. While this approach is really straightforward, and has all the advantages of the dynamic loading (smaller binary file size, ability to patch library without the need to recompile entire […]

How do libraries work? Part 1.

simple-c-code

I’ve been always wondering what happens, step by step when I use static or dynamic libraries and how can I actually use them. This very first blog post is about writing and including a dynamic library in MacOS system. Linux and Windows are coming soon. I will be mostly focusing on programming part, however, to […]