@lru_cache(maxsize=1)
def omvll_get_config() -> omvll.ObfuscationConfig:
"""
Return an instance of ObfuscationConfig which
aims at describing the obfuscation scheme
"""
return MyConfig()
Is failing.
If I remove the struct access feature it works fine.
How to reproduce:
Using the following configuration:
import omvll from functools import lru_cache
class MyConfig(omvll.ObfuscationConfig): def init(self): super().init() def obfuscate_arithmetic(self, mod: omvll.Module, fun: omvll.Function) -> omvll.ArithmeticOpt: return True
def flatten_cfg(self, mod: omvll.Module, func: omvll.Function): return True
def obfuscateconstants(, __, func: omvll.Function): return True
def obfuscate_structaccess(self, : omvll.Module, __: omvll.Function, struct: omvll.Struct): return True
def obfuscatestring(self, , __, string: bytes): return omvll.StringEncOptStack()
@lru_cache(maxsize=1) def omvll_get_config() -> omvll.ObfuscationConfig: """ Return an instance of ObfuscationConfig which aims at describing the obfuscation scheme """ return MyConfig()
Is failing.
If I remove the struct access feature it works fine.