profile-building - Copy downloaded schema/schema_id to parent directory for profile regeneration.

This commit is contained in:
Cossid
2024-11-21 17:00:50 -06:00
parent 9753d1e14b
commit 6ee1490d1c

View File

@@ -212,8 +212,12 @@ def run(directory: str, output_file_prefix: str, uuid: str, auth_key: str, produ
print(f"[+] Schema: {response['result']['schema']}")
with open(os.path.join(directory, output_file_prefix + "_schema_id.txt"), 'w') as f:
f.write(response['result']['schemaId'])
with open(os.path.join(os.path.join(directory, ".."), "schema_id.txt"), 'w') as f:
f.write(response['result']['schemaId'])
with open(os.path.join(directory, output_file_prefix + "_schema.txt"), 'w') as f:
f.write(response['result']['schema'])
with open(os.path.join(os.path.join(directory, ".."), "schema.txt"), 'w') as f:
f.write(response['result']['schema'])
with open(os.path.join(directory, output_file_prefix + "_dev_id.txt"), 'w') as f:
f.write(response['result']['devId'])
with open(os.path.join(directory, output_file_prefix + "_sec_key.txt"), 'w') as f: