PeNet | Portable Executable library written in .Net | Dataset library
kandi X-RAY | PeNet Summary
kandi X-RAY | PeNet Summary
PeNet is a parser for Windows Portable Executable headers. It completely written in C# and does not rely on any native Windows APIs. Furthermore it supports the creation of Import Hashes (ImpHash), which is a feature often used in malware analysis. You can extract Certificate Revocation List, compute different hash sums and other useful stuff for working with PE files.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of PeNet
PeNet Key Features
PeNet Examples and Code Snippets
Community Discussions
Trending Discussions on PeNet
QUESTION
I am using the PeNet nuget package to work with a pe file, there was a problem when creating or deleting a section, I take the code from the author's example, but nothing works. (No errors appear, but no files are written/overwritten.)
Using a C # console application, here's the code:
...ANSWER
Answered 2021-Feb-09 at 15:21From this GitHub issue about a similar topic:
PeNet works internally by loading the whole PE file into a buffer. All changes you make are done to this buffer in memory. If you want to save your changes, you just have to save the buffer.
Unfortunately, the code offered there is incorrect. PEFile has no Buff
property. So use:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install PeNet
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page