{"id":31655524,"url":"https://github.com/forentfraps/mft_reader","last_synced_at":"2025-10-07T13:15:13.438Z","repository":{"id":313436025,"uuid":"1051431721","full_name":"forentfraps/mft_reader","owner":"forentfraps","description":"Direct NTFS file reader via $MFT (Master File Table) for Windows. Bypasses file locks and permissions with admin privileges. Zig library with C bindings.","archived":false,"fork":false,"pushed_at":"2025-09-23T12:17:52.000Z","size":706,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-23T14:28:01.384Z","etag":null,"topics":["admin-tools","c-bindings","file-recovery","filesystem","forensics","low-level","mft","ntfs","red-team","system-programming","windows","windows-internals","zig"],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/forentfraps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-06T01:41:05.000Z","updated_at":"2025-09-06T01:54:23.000Z","dependencies_parsed_at":"2025-09-06T03:31:06.715Z","dependency_job_id":"063429c6-0a5d-4398-a563-643f100afba0","html_url":"https://github.com/forentfraps/mft_reader","commit_stats":null,"previous_names":["forentfraps/mft_reader"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/forentfraps/mft_reader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forentfraps%2Fmft_reader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forentfraps%2Fmft_reader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forentfraps%2Fmft_reader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forentfraps%2Fmft_reader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/forentfraps","download_url":"https://codeload.github.com/forentfraps/mft_reader/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forentfraps%2Fmft_reader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278780089,"owners_count":26044498,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["admin-tools","c-bindings","file-recovery","filesystem","forensics","low-level","mft","ntfs","red-team","system-programming","windows","windows-internals","zig"],"created_at":"2025-10-07T13:15:11.434Z","updated_at":"2025-10-07T13:15:13.429Z","avatar_url":"https://github.com/forentfraps.png","language":"Zig","readme":"# NTFS MFT Reader\n\nA Windows-only Zig library that reads files directly through NTFS $MFT (Master File Table), bypassing standard file APIs. Requires administrator privileges.\n\n## Features\n\n- Direct MFT access for file reading\n- Supports both resident and non-resident data\n- Handles NTFS runlists and fixups\n- C library export with automatic binding generation\n\n## Installation\n\n```bash\nzig fetch --save git+https://github.com/forentfraps/mft_reader\n```\n\nAdd to your `build.zig`:\n\n```zig\nconst mft_reader = b.dependency(\"mft_reader\", .{\n    .target = target,\n    .optimize = optimize,\n});\nexe.root_module.addImport(\"mft\", mft_reader.module(\"mft\"));\n```\n\n## Usage\n\n### Zig API\n\n```zig\nconst mft = @import(\"mft\");\n\npub fn main() !void {\n    var gpa = std.heap.GeneralPurposeAllocator(.{}){};\n    const allocator = gpa.allocator();\n    \n    const data = try mft.MftReadFile(allocator, \"C:\\\\path\\\\to\\\\file.txt\");\n    defer allocator.free(data);\n    \n    // Use data...\n}\n```\n\n### C API\n\nWhen compiled with `link_libc`, exports a C-compatible function:\n\n```c\n// Returns malloc'd buffer, caller must free()\n// Size is written to the size parameter\n// Returns NULL on error\nchar* MftReadFile(const char* path, size_t* size);\n```\n\nExample:\n```c\nsize_t size;\nchar* data = MftReadFile(\"C:\\\\file.txt\", \u0026size);\nif (data) {\n    // Use data...\n    free(data);  // Important: free the result\n}\n```\n\n## Command Line Tool\n\n```bash\nzig build run -- C:\\path\\to\\file\n```\n\n## Requirements\n\n- Windows only\n- Administrator privileges (for volume access)\n- NTFS filesystem\n\n## License\n\nMIT (See LICENCE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforentfraps%2Fmft_reader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fforentfraps%2Fmft_reader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforentfraps%2Fmft_reader/lists"}