Created
February 5, 2018 10:01
-
-
Save Headline/812f9ece824ab764dd7b411fb275b074 to your computer and use it in GitHub Desktop.
Recursively searches all subdirectories for plugins, decompiles them, and appends their output to output.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import os.path | |
def get_clean_path(array): | |
somestr = "" | |
for x in range(0, len(array) - 1): | |
somestr += array[x] + "\\" | |
return somestr | |
path = get_clean_path(os.path.realpath(__file__).split("\\")) | |
for dirpath, dirnames, filenames in os.walk(path): | |
for filename in filenames: | |
current = dirpath + filename | |
if filename.endswith(".smx"): | |
print("DECOMPILING: " + current) | |
os.system("java -jar lysis-java.jar \"" + filename + "\" >> output.txt") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment