32 lines
941 B
C#
Raw Normal View History

2024-06-22 12:39:10 -04:00
using CliFx;
using CliFx.Attributes;
using CliFx.Infrastructure;
using ReCodeIt.Utils;
using ReCodeItLib.Remapper;
namespace ReCodeIt.Commands;
[Command("DeObfuscate", Description = "Generates a de-obfuscated -cleaned dll in the folder your assembly is in")]
public class DeObfuscate : ICommand
{
[CommandParameter(0, IsRequired = true, Description = "The absolute path to your obfuscated assembly file, folder must contain all references to be resolved.")]
public string AssemblyPath { get; init; }
public ValueTask ExecuteAsync(IConsole console)
{
DataProvider.IsCli = true;
2024-06-22 14:40:04 -04:00
DataProvider.LoadAppSettings();
2024-06-22 12:39:10 -04:00
Logger.Log("Deobfuscating assembly...");
Deobfuscator.Deobfuscate(AssemblyPath);
Logger.Log("Complete", ConsoleColor.Green);
// Wait for log termination
Logger.Terminate();
while(Logger.IsRunning()) {}
2024-06-22 12:39:10 -04:00
return default;
}
}