Use the horrendous tools used to deobfuscate

This commit is contained in:
Pyogenics
2025-05-09 17:55:58 +01:00
parent f8ac96858f
commit 00c1611d1b
6 changed files with 184 additions and 0 deletions

16
utils/replace.py Normal file
View File

@@ -0,0 +1,16 @@
from sys import argv
from os import listdir
from os.path import isdir
import subprocess
abcPath = argv[1]
swfPath = argv[2]
for path in listdir(abcPath):
folder = path.split("/")[-1]
path = f"{abcPath}/{path}"
if not isdir(path): continue
abcIndex = folder.split("-")[-1]
abcFile = f"{path}/{folder}.main.abc"
print(f"{path} {abcIndex} {abcFile}")
subprocess.run(["abcreplace", swfPath, abcIndex, abcFile])