Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7088697
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:49:57+00:00 2026-05-28T07:49:57+00:00

I was looking up things on different methods for coding to find rootkits, and

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T07:49:58+00:00Added an answer on May 28, 2026 at 7:49 am

    It’s pretty easy to read things directly…

    (Edit: you can even do this without using Windows-specific header files — see below.)

    #include <stdlib.h>
    #include <stdio.h>
    
    int main(void)
    {
        FILE *volume = fopen("\\\\.\\C:", "r");
        if (volume)
        {
            long long offset = 0;  // Sector-aligned offset
            setbuf(volume, NULL);  // Disable buffering
    
            if (_fseeki64(volume, offset, SEEK_SET) == 0)
            {
                char buf[1024];  // Multiple of sector size
                size_t cb = fread(buf, sizeof(*buf), _countof(buf), volume);
    
                // Process the data
            }
            fclose(volume);
        }
        return 0;
    }
    

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am looking for things like reordering of code that could even break the
I am looking for one of 2 things, Test Driven Development, or Architecture Trainings
So I'm looking at writing an iPhone application that shows things on a map.
I've installed PowerShell recently and one of the first things I started looking for
This is probably a simple one, but I've tried loads of different things and
I'm looking mainly at things like new SQL syntax, new kinds of locking, new
I am looking at validation of some text boxes for things like required, minlength,
I'm looking for a practical application to use a genetic algorithm for. Some things
I'm looking for an app that does about the same thing at the Performance
I'm looking for things like Dynamic typing, Static Typing, Weak Typing, and Strong Typing.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.