Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. NTFS MFT Directory Index

NTFS MFT Directory Index

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialdatabasecomquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Chris Copeland
    wrote on last edited by
    #1

    Hey guys, I was just wondering, given Master File Table entries on an NTFS system, how would one retrieve the directory of the file? I understand there's an Index attribute somewhere, but i'm not sure how to read the index and convert it to a path or position. Example of a file: - Directory path: C:\Archives\ - Filename name: 09011105010CITV.txt - Full directory path: C:\Archives\09011105010CITV.txt I made these two files and ran a scan on my Master File Table. Using a custom built Hex Viewer, these are the two hexadecimal outputs of the files: MFT output[^] Those are the blocks of data in the Master File Table. Now i'm going to try and see if I can try and figure out how to link the two together, but otherwise can anyone else lend a hand? Thank you. Much appreciated!

    L 1 Reply Last reply
    0
    • C Chris Copeland

      Hey guys, I was just wondering, given Master File Table entries on an NTFS system, how would one retrieve the directory of the file? I understand there's an Index attribute somewhere, but i'm not sure how to read the index and convert it to a path or position. Example of a file: - Directory path: C:\Archives\ - Filename name: 09011105010CITV.txt - Full directory path: C:\Archives\09011105010CITV.txt I made these two files and ran a scan on my Master File Table. Using a custom built Hex Viewer, these are the two hexadecimal outputs of the files: MFT output[^] Those are the blocks of data in the Master File Table. Now i'm going to try and see if I can try and figure out how to link the two together, but otherwise can anyone else lend a hand? Thank you. Much appreciated!

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      This is a fairly large subject; I suggest you start by researching here[^].

      I must get a clever new signature for 2011.

      C 1 Reply Last reply
      0
      • L Lost User

        This is a fairly large subject; I suggest you start by researching here[^].

        I must get a clever new signature for 2011.

        C Offline
        C Offline
        Chris Copeland
        wrote on last edited by
        #3

        Well, I already have all the MFT reader running. Turns out I just need to parse the Index Root Attribute and read the indexes. Turned out to be quite simple. Thanks anyway :)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups