mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-09-22 06:45:03 +00:00
Seek to beginning for Embedded Executable
This commit is contained in:
@@ -46,6 +46,7 @@ namespace BinaryObjectScanner.Packer
|
||||
try
|
||||
{
|
||||
// Parse into an executable again for easier extraction
|
||||
stream?.Seek(0, SeekOrigin.Begin);
|
||||
var pex = PortableExecutable.Create(stream);
|
||||
if (pex?.ResourceData == null)
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user