Replies: 2 comments 1 reply
-
Typically, a e.g., var file = PEFile.FromFile(...);
var module = ModuleDefinition.FromFile(file);
// At this point you can still use `file` here... However, if you really must get the underlying PE file from a ModuleDefinition module = ...;
if (module is SerializedModuleDefinition { ReaderContext.Image.PEFile: {} file })
{
// `file` is the underlying PE file.
} Keep in mind though that any |
Beta Was this translation helpful? Give feedback.
-
If I patch a method (hot patch) without saving peFile , does module will be updated automatically, for example if I pull cilMethodbody from that method after patching, does changed bytes will be applied to instructions? |
Beta Was this translation helpful? Give feedback.
-
Hi everyone, Is it possible to get segment as patched Segment from method definition or module definition? If not, is it possible to get PEFile from module definition or assembly definition without creating any new PEFile through ManagedPEFileBuilder, to get Segment from it, I mean I want applying patching bytes to original module (created from File path directly) that it is not created from a PEFile
thanks.
Beta Was this translation helpful? Give feedback.
All reactions