Fix deobfuscation string method tokens
This commit is contained in:
parent
f10a67e681
commit
6c03bf1dbb
@ -1,4 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
@ -51,7 +52,11 @@ namespace SPT_AssemblyTool
|
||||
Program.WriteError($"Expected to find 1 potential string delegate method; found {potentialStringDelegates.Count}. Candidates: {string.Join("\r\n", potentialStringDelegates.Select(x => x.FullName))}");
|
||||
}
|
||||
|
||||
token = potentialStringDelegates[0].MetadataToken.ToString();
|
||||
var deobfRid = potentialStringDelegates[0].MetadataToken;
|
||||
|
||||
token = $"0x{((uint)deobfRid.TokenType | deobfRid.RID):x4}";
|
||||
|
||||
Console.WriteLine($"Deobfuscation token: {token}");
|
||||
}
|
||||
|
||||
var process = Process.Start(de4dotLocation,
|
||||
|
Loading…
x
Reference in New Issue
Block a user