Clean up some usings, add note to NSIS

This commit is contained in:
Matt Nadareski
2021-08-27 13:30:24 -07:00
parent eb76acb767
commit ee0193eb71
7 changed files with 21 additions and 9 deletions

View File

@@ -3,7 +3,6 @@ using System.Linq;
using System.Text;
using BurnOutSharp.ExecutableType.Microsoft;
using BurnOutSharp.Matching;
using BurnOutSharp.Tools;
namespace BurnOutSharp.PackerType
{

View File

@@ -3,7 +3,6 @@ using System.Linq;
using System.Text;
using BurnOutSharp.ExecutableType.Microsoft;
using BurnOutSharp.Matching;
using BurnOutSharp.Tools;
namespace BurnOutSharp.PackerType
{

View File

@@ -6,7 +6,6 @@ using System.Linq;
using System.Text;
using BurnOutSharp.ExecutableType.Microsoft;
using BurnOutSharp.Matching;
using BurnOutSharp.Tools;
namespace BurnOutSharp.PackerType
{

View File

@@ -5,7 +5,6 @@ using System.Linq;
using System.Text;
using BurnOutSharp.ExecutableType.Microsoft;
using BurnOutSharp.Matching;
using BurnOutSharp.Tools;
namespace BurnOutSharp.PackerType
{

View File

@@ -1,8 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BurnOutSharp.ExecutableType.Microsoft;
using BurnOutSharp.Matching;
using BurnOutSharp.Tools;

View File

@@ -31,7 +31,23 @@ namespace BurnOutSharp.PackerType
}
/// <inheritdoc/>
public string CheckContents(string file, byte[] fileContent, bool includeDebug = false) => null;
public string CheckContents(string file, byte[] fileContent, bool includeDebug = false)
{
// Get the sections from the executable, if possible
// PortableExecutable pex = PortableExecutable.Deserialize(fileContent, 0);
// var sections = pex?.SectionTable;
// if (sections == null)
// return null;
// TODO: Implement resource finding instead of using the built in methods
// Assembly information lives in the .rsrc section
// I need to find out how to navigate the resources in general
// as well as figure out the specific resources for both
// file info and MUI (XML) info. Once I figure this out,
// that also opens the doors to easier assembly XML checks.
return null;
}
public static string GetVersion(string file, byte[] fileContent, List<int> positions)
{

View File

@@ -367,7 +367,10 @@ namespace BurnOutSharp.Tools
/// </summary>
/// <param name="fileContent">Byte array representing the file contents</param>
/// <returns>Embedded assembly manifest as a string, if possible</returns>
/// <remarks>TODO: How do we find the manifest specifically better?</remarks>
/// <remarks>
/// TODO: How do we find the manifest specifically better
/// TODO: This should be derived specifically in the .rsrc section
/// </remarks>
private static string GetEmbeddedAssemblyManifest(byte[] fileContent)
{
// <?xml