Didier Stevens

Monday 9 July 2018

–jsonoutput

Filed under: My Software — Didier Stevens @ 0:00

My oledump.py and zipdump.py tools have a new option: –jsonoutput. With this option, my tools will output JSON data to stdout. For oledump, the JSON data will contain the content of all the streams found inside the analyzed OLE file, and for zipdump respectively, the JSON data will contain the content of all the files found inside the analyzed ZIP file.

This is meant to be piped into a new tool I will release soon.

Let’s take a small ZIP files with 2 small files as example (a binary file and a text file). Here is the content displayed with zipdump:

With zipdump’s option –jsonoutput, we output JSON data with the content of these 2 files encoded in BASE64:

Here is the same data pretty-printed:

This can now be piped into other tools that support this JSON data format.

 

4 Comments »

  1. […] here is an example with jsonoutput I mentioned […]

    Pingback by New Tool: file-magic.py | Didier Stevens — Wednesday 11 July 2018 @ 0:00

  2. […] –jsonoutput […]

    Pingback by Overview of Content Published in July | Didier Stevens — Thursday 2 August 2018 @ 0:01

  3. […] option –jsoninput can be used to process JSON output produced by oledump.py or zipdump.py, for […]

    Pingback by Update: format-bytes Version 0.0.5 | Didier Stevens — Tuesday 14 August 2018 @ 0:00

  4. […] It also supports JSON input. […]

    Pingback by Release: strings.py | Didier Stevens — Sunday 9 December 2018 @ 0:00


RSS feed for comments on this post. TrackBack URI

Leave a Reply (comments are moderated)

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Blog at WordPress.com.