honeynet / cuckoo-droid

12 stars 2 forks source link

Allow opt-in of json analysis options #2

Open jbremer opened 8 years ago

jbremer commented 8 years ago

Rather than forcing JSON or converting to JSON, allow JSON but default back to the comma-separated configuration that we've had since forever.

Coder-Manan commented 1 year ago

@jbremer are you referring to the following code in https://github.com/honeynet/cuckoo-droid/blob/f9f2da195869c7687624f2b34ab3b7dd4bcc811d/web/analysis/views.py?

analysis_path = os.path.join(path, "analysis.json")
    with open(analysis_path, "w") as outfile:
        report["target"].pop("file_id", None)
        json.dump({"target": report["target"]}, outfile, indent=4)