-
-
Save romainthomas/149ce793702f3dc28126f7840f5d6870 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
O-MVLL Configuration file to obfuscate zlib on iOS | |
""" | |
import omvll | |
from functools import lru_cache | |
class Config(omvll.ObfuscationConfig): | |
def __init__(self): | |
super().__init__() | |
def obfuscate_struct_access(self, mod: omvll.Module, func: omvll.Function, S: omvll.Struct): | |
return S.name in ["struct.internal_state", "struct.z_stream_s"] | |
def flatten_cfg(self, mod: omvll.Module, func: omvll.Function): | |
return True | |
def obfuscate_string(self, mod, func, string: bytes): | |
return True | |
@lru_cache(maxsize=1) | |
def omvll_get_config() -> Config: | |
return Config() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment