diff options
-rw-r--r-- | Capture-decryption/README.md | 2 | ||||
-rw-r--r-- | Capture-decryption/decode_capture.py | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/Capture-decryption/README.md b/Capture-decryption/README.md index 5a3535c..4a9a8e8 100644 --- a/Capture-decryption/README.md +++ b/Capture-decryption/README.md @@ -38,5 +38,5 @@ pip install protobuf==3.20.* ## Usage ``` -python decode_capture.py <your-file>.cns.dec > <output-name>.json +python decode_capture.py <your-file>.cns.dec ```
\ No newline at end of file diff --git a/Capture-decryption/decode_capture.py b/Capture-decryption/decode_capture.py index bb85618..dd3d413 100644 --- a/Capture-decryption/decode_capture.py +++ b/Capture-decryption/decode_capture.py @@ -19,5 +19,6 @@ message.ParseFromString(input_data) # Convert the message object to a JSON string json_string = json_format.MessageToJson(message) -# Print the JSON string to stdout -sys.stdout.write(json_string) +# Save the JSON string to a file +with open("capture.json", "w") as f: + f.write(json_string)
\ No newline at end of file |