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

22
utils/generatepmapping.py Normal file
View File

@@ -0,0 +1,22 @@
from json import load, dump
from sys import argv
mappingPath = argv[1]
mapping = {}
with open(mappingPath, "r") as file:
mapping = load(file)
classMap = {}
for packageName in mapping:
package = mapping[packageName]
for className in package:
clas = package[className]
func = list(clas.values())
if len(func) != 0:
func = func[1]
realName = func.split("/")[0]
fakeName = f"{packageName}:{className}"
classMap[fakeName] = realName
with open("packagemap.json", "w") as file:
dump(classMap, file)