I was looking up things on different methods for coding to find rootkits, and I came upon a question here, actually, that mentioned one way to detect them was to scan for files using the windows API, and then using the direct file system, and see if there was any discrepancies (for some kinds of rootkits).
This made me question(s): How do you write code to directly access the file system? What kind of function calls would be needed for this? Is this something that can be done in C++ or would i need to go to assembly?
Any answers or guidance would be lovely!
Thank you,
-Stefan Z
It’s pretty easy to read things directly…
(Edit: you can even do this without using Windows-specific header files — see below.)
The hard part is figuring out what to read, and how to interpret it.
A lot about NTFS is undocumented, but some parts of it are documented. Have fun researching.