Closed ncorbuk closed 3 years ago
I fixed it lol in the end sorry. My system was using mostly getdents so adding that fixed it.
Yeah, different distros/kernels seem to prefer getdents
over getdents64
, or vice versa. That's why the example techniques in the repo hook both. Glad you're enjoying the articles though!
I have been enjoying reading your articles on https://xcellerator.github.io/posts/linux_rootkits_06/ , thank you for them :)
I am having problems with getdents... even when i copy the code excatly as you have done. I have the syscalls hooked fine and so on but the compare doesnt work with the PREFIX. I printed out the d_name to see what it was seeing and i get this....
Do you know what is happening?