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]))