-
Notifications
You must be signed in to change notification settings - Fork 0
/
Defenitions.cs
70 lines (54 loc) · 1.86 KB
/
Defenitions.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
using System;
using System.Collections.Generic;
using System.Linq;
namespace ILSafe.SDK
{
public enum SecurityType : byte
{
NONE,
SECURITY,
VIRTUALIZATION,
ALL
}
public enum SecurityOptions : byte
{
NONE,
ENCODESTRINGS,
FAKEILCODE,
CODEJUNK,
SUPRESSILDASM,
ANTIDEBUG,
ANTIVM,
INTCONFUSER,
LAZYIMPORT
}
public class SecurityTypeAttribute : Attribute
{
public SecurityType _type { get; set; }
public SecurityTypeAttribute(SecurityType type)
{
_type = type;
}
}
public class SecurityOptionsAttribute : Attribute
{
public List<SecurityOptions> _type { get; set; }
public SecurityOptionsAttribute(params SecurityOptions[] type)
{
_type = type.ToList();
}
}
public class LazyImporter
{
public extern object LazyImport(Func<string, dynamic> _obj, params object[] _args);
public extern object LazyImport(Func<Object, dynamic> _obj, params object[] _args);
public extern object LazyImport(Func<string> _obj, params object[] _args);
public extern object LazyImport(Func<dynamic> _obj, params object[] _args);
//public extern object LazyImport(Func<Object> _obj, params object[] _args);
public extern object LazyImportA(Action _obj, params object[] _args);
public extern object LazyImportA(Action<dynamic> _obj, params object[] _args);
//public extern object LazyImportA(Action<object> _obj, params object[] _args);
public extern object LazyImportA(Action<Object, dynamic> _obj, params object[] _args);
public extern object LazyImportA(Action<string, dynamic> _obj, params object[] _args);
}
}