Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature obfuscate_struct_access crash during startup #38

Open
sevilS opened this issue Mar 20, 2024 · 0 comments
Open

Feature obfuscate_struct_access crash during startup #38

sevilS opened this issue Mar 20, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@sevilS
Copy link
Collaborator

sevilS commented Mar 20, 2024

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 obfuscate_constants(_, __, func: omvll.Function):
return True

def obfuscate_struct_access(self, _: omvll.Module, __: omvll.Function,
struct: omvll.Struct):
return True

def obfuscate_string(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.

@marcobrador marcobrador added the bug Something isn't working label Apr 8, 2024
antoniofrighetto pushed a commit to antoniofrighetto/o-mvll that referenced this issue Jun 28, 2024
Add config for hybrid apps

* Add config for hybrid apps

* Add missing relative path dots

* Remove tak injection config


Approved-by: Antonio Frighetto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants