{"id":15099840,"url":"https://github.com/soheil-01/zpe","last_synced_at":"2026-02-16T09:02:08.059Z","repository":{"id":252245155,"uuid":"835262531","full_name":"soheil-01/zpe","owner":"soheil-01","description":"A Portable Executable parser in Zig","archived":false,"fork":false,"pushed_at":"2024-10-19T07:31:23.000Z","size":512,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T22:45:10.401Z","etag":null,"topics":["parser","portable-executable","windows","zig"],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/soheil-01.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-07-29T13:32:01.000Z","updated_at":"2024-11-08T15:16:23.000Z","dependencies_parsed_at":"2025-04-16T04:01:07.651Z","dependency_job_id":null,"html_url":"https://github.com/soheil-01/zpe","commit_stats":null,"previous_names":["soheil-01/zpe"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/soheil-01/zpe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soheil-01%2Fzpe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soheil-01%2Fzpe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soheil-01%2Fzpe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soheil-01%2Fzpe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soheil-01","download_url":"https://codeload.github.com/soheil-01/zpe/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soheil-01%2Fzpe/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29504684,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T08:14:25.707Z","status":"ssl_error","status_checked_at":"2026-02-16T08:14:25.334Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["parser","portable-executable","windows","zig"],"created_at":"2024-09-25T17:28:17.123Z","updated_at":"2026-02-16T09:02:08.035Z","avatar_url":"https://github.com/soheil-01.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ZPE - Zig Portable Executable Parser\n\nZPE is a library and a command-line tool that allows you to parse and inspect the structure of Portable Executable files.\n\n## Features\n\nZPE can parse and display the following components of a PE file:\n\n- DOS Header\n- Rich Header\n- NT Headers\n- Section Headers\n- Import Directory\n- Export Directory\n- Base Relocation Directory\n\n## Usage as a Command-Line Tool\n\n```sh\n$ zpe --file-path path/to/your/file\n```\n\nYou can also selectively display specific parts of the PE file:\n\n```sh\n$ zpe --file-path path/to/your/file --print-dos-header --print-nt-headers\n```\n\nThe Available command-line options are:\n\n- `--file-path`: The path to the Portable Executable file you want to analyze.\n- `--print-dos-header`: Print the contents of the DOS header.\n- `--print-rich-header`: Print the contents of the Rich header.\n- `--print-nt-headers`: Print the contents of the NT headers.\n- `--print-section-headers`: Print the contents of the section headers.\n- `--print-import-directory`: Print the contents of the import directory.\n- `--print-export-directory`: Print the contents of the export directory.\n- `--print-base-relocation-directory`: Print the contents of the base relocation directory.\n\n## Usage as a Library\n\n```zig\nconst std = @import(\"std\");\nconst PEParser = @import(\"zpe\").PEParser;\n\nfn main() !void {\n    var gpa = std.heap.GeneralPurposeAllocator(.{}){};\n    defer _ = gpa.deinit();\n    const allocator = gpa.allocator();\n\n    var parser = try PEParser.init(allocator, \"path/to/your/file\");\n    defer parser.deinit();\n\n    try parser.parse();\n\n    // Access the parsed information\n    std.debug.print(\"DOS Header Magic: 0x{X}\\n\", .{parser.dos_header.?.e_magic});\n    // ...\n}\n```\n\n## Contributing\n\nIf you find any issues or want to contribute to the development of ZPE, feel free to open a new issue or submit a pull request on the ZPE GitHub repository. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoheil-01%2Fzpe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoheil-01%2Fzpe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoheil-01%2Fzpe/lists"}