Skip to content

Commit

Permalink
Merge branch 'main' into 25-improve-fct-deobfuscator
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/vipyr_deobf/cli.py
  • Loading branch information
FieryIceStickie committed Mar 3, 2024
2 parents ab7bf9b + 0642990 commit b1c65c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/vipyr_deobf/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@
from .deobfuscators.fct import deobf_fct, format_fct
from .deobfuscators.hyperion import deobf_hyperion, format_hyperion
from .deobfuscators.lzmaspam import deobf_lzma_b64, format_lzma_b64
from .deobfuscators.vore import deobf_vore, format_vore
from .deobfuscators.vare import deobf_vare, format_vare
from .exceptions import DeobfuscationFailError, InvalidSchemaError

R = TypeVar('R')

supported_obfuscators: dict[str, tuple[Callable[[TextIO], R], Callable[[R], str]]] = {
'hyperion': (deobf_hyperion, format_hyperion),
'lzmaspam': (deobf_lzma_b64, format_lzma_b64),
'vore': (deobf_vore, format_vore),
'vore': (deobf_vare, format_vare),
'fct': (deobf_fct, format_fct),
}

alias_dict: dict[str, str] = {
'vare': 'vore',
'vore': 'vare',
'hyperd': 'hyperion',
'fct_obfuscate': 'fct',
'not_pyobfuscate': 'fct',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from ..utils import WEBHOOK_REGEX


def deobf_vore(file: TextIO) -> str:
def deobf_vare(file: TextIO) -> str:
"""
Extracts the entire source code from code
"""
Expand All @@ -33,7 +33,7 @@ def deobf_vore(file: TextIO) -> str:
).decode()


def format_vore(result: str) -> str:
def format_vare(result: str) -> str:
return result + '\n\n' + '\n'.join(re.findall(WEBHOOK_REGEX, result))


Expand Down

0 comments on commit b1c65c0

Please sign in to comment.