Skip to content

Instantly share code, notes, and snippets.

@romainthomas
Created October 30, 2022 19:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save romainthomas/149ce793702f3dc28126f7840f5d6870 to your computer and use it in GitHub Desktop.
Save romainthomas/149ce793702f3dc28126f7840f5d6870 to your computer and use it in GitHub Desktop.
"""
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