mirror of
https://github.com/MapMakersAndProgrammers/TankiOnline2.0DemoClient.git
synced 2025-10-26 01:49:11 -07:00
Use the horrendous tools used to deobfuscate
This commit is contained in:
16
utils/replace.py
Normal file
16
utils/replace.py
Normal 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])
|
||||
Reference in New Issue
Block a user