This repository has been archived by the owner on Jul 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 287
/
obfuscator_category.py
55 lines (36 loc) · 1.33 KB
/
obfuscator_category.py
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
#!/usr/bin/env python3
from abc import ABC, abstractmethod
from yapsy.IPlugin import IPlugin
from obfuscapk.obfuscation import Obfuscation
class IBaseObfuscator(ABC, IPlugin):
def __init__(self):
super().__init__()
self.is_adding_fields = False
self.is_adding_methods = False
@abstractmethod
def obfuscate(self, obfuscation_info: Obfuscation):
raise NotImplementedError()
class ITrivialObfuscator(IBaseObfuscator):
@abstractmethod
def obfuscate(self, obfuscation_info: Obfuscation):
raise NotImplementedError()
class IRenameObfuscator(IBaseObfuscator):
@abstractmethod
def obfuscate(self, obfuscation_info: Obfuscation):
raise NotImplementedError()
class IEncryptionObfuscator(IBaseObfuscator):
@abstractmethod
def obfuscate(self, obfuscation_info: Obfuscation):
raise NotImplementedError()
class ICodeObfuscator(IBaseObfuscator):
@abstractmethod
def obfuscate(self, obfuscation_info: Obfuscation):
raise NotImplementedError()
class IResourcesObfuscator(IBaseObfuscator):
@abstractmethod
def obfuscate(self, obfuscation_info: Obfuscation):
raise NotImplementedError()
class IOtherObfuscator(IBaseObfuscator):
@abstractmethod
def obfuscate(self, obfuscation_info: Obfuscation):
raise NotImplementedError()