{"id":17180804,"url":"https://github.com/jsok/petools","last_synced_at":"2025-04-13T17:13:30.791Z","repository":{"id":148166793,"uuid":"21062799","full_name":"jsok/PETools","owner":"jsok","description":"C# Library to handle the Portable Executable format","archived":false,"fork":false,"pushed_at":"2014-06-21T07:25:21.000Z","size":136,"stargazers_count":7,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-13T17:13:25.491Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/jsok.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}},"created_at":"2014-06-21T07:12:09.000Z","updated_at":"2022-06-05T07:45:11.000Z","dependencies_parsed_at":"2023-03-27T17:23:07.731Z","dependency_job_id":null,"html_url":"https://github.com/jsok/PETools","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsok%2FPETools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsok%2FPETools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsok%2FPETools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsok%2FPETools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsok","download_url":"https://codeload.github.com/jsok/PETools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248750127,"owners_count":21155687,"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","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":[],"created_at":"2024-10-15T00:31:48.094Z","updated_at":"2025-04-13T17:13:30.772Z","avatar_url":"https://github.com/jsok.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"PETools\n=======\n\nA C# Library for handling and manipulating this Portable Executable format.\n\nUseful for modifying section data of a DLL.\n\nSome preliminary work for supporting COFF with basic ability to read symbol tables.\n\nUsage\n-----\n\n```csharp\n\nusing PETools;\n\nPETool pe = new PETool();\n\npe.Read(\"target.dll\");\n\nusing (MemoryStream stream = new MemoryStream(pe.GetSectionData(\".data\")))\n{\n    // read contents using `stream` object\n    stream.Close()\n}\n\n\n// It's also possible to replace section data, e.g.:\nbyte[] data = ...;\npe.WriteSectionData(\".data\", data);\n\n// Call layout to fix up headers and section layout\npe.Layout();\n\n// Write it back to disk\npe.WriteFile(\"target.dll\");\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsok%2Fpetools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsok%2Fpetools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsok%2Fpetools/lists"}