Skip to content

Commit

Permalink
Fixed issues with dumping .NET Reactor v6.8 embedded assemblies.
Browse files Browse the repository at this point in the history
  • Loading branch information
SychicBoy committed Nov 20, 2021
1 parent 90553c7 commit 6915b07
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions NetReactorSlayer-x64/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.0.0")]
[assembly: AssemblyFileVersion("1.2.0.0")]
[assembly: AssemblyVersion("2.0.0.0")]
[assembly: AssemblyFileVersion("2.0.0.0")]
4 changes: 2 additions & 2 deletions NetReactorSlayer.Core/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.0.0")]
[assembly: AssemblyFileVersion("1.2.0.0")]
[assembly: AssemblyVersion("2.0.0.0")]
[assembly: AssemblyFileVersion("2.0.0.0")]
2 changes: 1 addition & 1 deletion NetReactorSlayer.Core/Protections/Anti.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public static void Execute(bool antiDebug = true, bool antiTamper = true)
if (!isAntiTamperFound)
Logger.Warn("Couldn't find anti tamper method.");
if (!isAntiDebugFound)
Logger.Warn("Couldn't find debugger method.");
Logger.Warn("Couldn't find anti debugger method.");
}
}
}
6 changes: 3 additions & 3 deletions NetReactorSlayer.Core/Protections/EmbeddedAsm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ static bool FindResolverMethod(TypeDef type, out MethodDef method)

static bool CheckFields(IList<FieldDef> fields)
{
if (fields.Count != 2 && fields.Count != 3) return false;
if (fields.Count != 2 && fields.Count != 3 && fields.Count != 4) return false;
FieldTypes fieldTypes = new FieldTypes(fields);
if (fieldTypes.Count("System.Boolean") != 1) return false;
if (fields.Count == 3)
if (fieldTypes.Count("System.Boolean") != 1 && fieldTypes.Count("System.Boolean") != 2) return false;
if (fields.Count > 2)
{
return (fieldTypes.Count("System.Collections.Hashtable") == 2 || fieldTypes.Count("System.Object") == 2);
}
Expand Down
2 changes: 1 addition & 1 deletion NetReactorSlayer.Core/Utils/Variables.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace NETReactorSlayer.Core.Utils
public class Variables
{
public static readonly string version = Assembly.GetExecutingAssembly().GetName().Version.ToString();
public static readonly string[] supportedVersions = { "6.0", "6.2", "6.3", "6.5", "6.7" };
public static readonly string[] supportedVersions = { "6.0", "6.2", "6.3", "6.5", "6.7", "6.8" };
public static readonly string[] arguments ={
"--no-necrobit", " Don't decrypt methods (NecroBit).",
"--no-anti-tamper", " Don't remove anti tamper.",
Expand Down
4 changes: 2 additions & 2 deletions NetReactorSlayer/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.0.0")]
[assembly: AssemblyFileVersion("1.2.0.0")]
[assembly: AssemblyVersion("2.0.0.0")]
[assembly: AssemblyFileVersion("2.0.0.0")]

0 comments on commit 6915b07

Please sign in to comment.