-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathProgram.cs
78 lines (47 loc) · 1.86 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
using System;
using System.IO;
using dnlib.DotNet;
using dnlib.DotNet.Writer;
using kov.NET.Protections;
using kov.NET.Utils;
namespace kov.NET
{
class Program
{
public static ModuleDefMD Module { get; set; }
public ModuleDef ManifestModule;
public static string FileExtension { get; set; }
public static bool DontRename { get; set; }
public static bool ForceWinForms { get; set; }
public static string FilePath { get; set; }
static void Main(string[] args)
{
Console.WriteLine("Drag n drop your file : ");
string path = Console.ReadLine();
Module = ModuleDefMD.Load(path);
FileExtension = Path.GetExtension(path);
Console.WriteLine("Encrypting strings...");
StringEncryption.Execute();
Console.WriteLine("Renaming...");
Renamer.Execute();
Console.WriteLine("Adding ints...");
AddInteger.Execute();
Console.WriteLine("Encoding ints...");
IntEncoding.Execute();
Console.WriteLine("Injecting ControlFlow...");
ControlFlow.Execute();
Console.WriteLine("Injecting local to fields...");
L2F.Execute();
Console.WriteLine("Adding Proxys...");
ProxyInts.Execute();
Console.WriteLine("Injecting AntiDe4Dot...");
AntiDe4Dot.Execute();
Console.WriteLine("Saving file...");
var pathez = $"{path}-kov.exe";
ModuleWriterOptions opts = new ModuleWriterOptions(Module) { Logger = DummyLogger.NoThrowInstance };
Module.Write(pathez, opts);
Console.WriteLine("Done! Press any key to exit...");
Console.ReadKey();
}
}
}