You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
apphost-extract/src/apphost-extract/apphost-extract-v2/Analyzer.cs

44 lines
892 B

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection.PortableExecutable;
using System.Text;
namespace apphost_extract_v2
{
public class Analyzer
{
private FileStream File;
public PEHeaders PEHeader;
private readonly byte[] VERSION_SIGNATURE = new byte[] { };
private const string VERSION_SIGNATURE_MASK = "";
public Analyzer(FileStream fs)
{
File = fs;
PEHeader = new PEHeaders(fs);
}
public SectionHeader GetSegment(string name)
{
var section = PEHeader.SectionHeaders.Where(x => x.Name == name).FirstOrDefault();
return section;
}
public ApphostVersion GetVersion()
{
}
}
public enum ApphostVersion
{
NET30,
NET31,
NET5
}
}