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

Pull name changes from main #29

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/vipyr_deobf/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from .deobfuscators.hyperion import format_hyperion, deobf_hyperion
from .deobfuscators.lzmaspam import format_lzma_b64, deobf_lzma_b64
from .deobfuscators.vore import format_vore, deobf_vore
from .deobfuscators.vare import format_vare, deobf_vare
from .deobfuscators.not_pyobfuscate import format_not_pyobfuscate, deobf_not_pyobfuscate
from .exceptions import DeobfuscationFailError, InvalidSchemaError

Expand All @@ -12,12 +12,12 @@
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),
'vare': (deobf_vare, format_vare),
'not_pyobfuscate': (deobf_not_pyobfuscate, format_not_pyobfuscate),
}

alias_dict: dict[str, str] = {
'vare': 'vore',
'vore': 'vare',
'hyperd': 'hyperion',
'fct-obfuscate': 'not_pyobfuscate',
}
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