From 06ae3542c775bef8f542e8bde62c6f61da698f1a Mon Sep 17 00:00:00 2001 From: Remiliacn Date: Mon, 16 Dec 2024 06:42:24 +0000 Subject: [PATCH] Fix: lunar decompiler and regex. --- constants/regex.py | 2 +- luna_grabber_decompiler.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/constants/regex.py b/constants/regex.py index 6a92ee5..23e3025 100644 --- a/constants/regex.py +++ b/constants/regex.py @@ -1,4 +1,4 @@ -WEBHOOK_REGEX = r"(https?:\/\/*discord(app)?\.com\/api\/webhooks\/\d+\/.{68})" +WEBHOOK_REGEX = r"(https?:\/\/.*discord(app)?\.com\/api\/webhooks\/\d+\/.{68})" WEBHOOK_REGEX_BASE64 = r"(aHR0cHM6Ly9[\d\w]+==)" TELEGRAM_REGEX = r"([0-9]{10}:[a-zA-Z0-9]{35})" TELEGRAM_REGEX_BASE64 = r"([MNZO][A-Za-z0-9+/=]{30,})\x00" diff --git a/luna_grabber_decompiler.py b/luna_grabber_decompiler.py index 2ffaaee..a3b9fbf 100644 --- a/luna_grabber_decompiler.py +++ b/luna_grabber_decompiler.py @@ -1,4 +1,5 @@ from os import getcwd, path +from sys import argv from typing import List from loguru import logger @@ -45,4 +46,4 @@ def luna_grabber_decompiler(exe_path: str) -> List[str]: if __name__ == "__main__": - luna_grabber_decompiler(f"{getcwd()}/93483434.exe") + print(luna_grabber_decompiler(argv[1]))