Quickpost: emldump Bulk Extraction
文章介绍如何使用 `emldump.py` 工具批量提取电子邮件附件,并通过 `myjson-filter.py` 进行处理或分析,支持直接保存文件或在内存中运行命令。 2025-6-5 00:0:0 Author: blog.didierstevens.com(查看原文) 阅读量:22 收藏

Quickpost: emldump Bulk Extraction

Filed under: Quickpost — Didier Stevens @ 0:00

A reader asked about bulk extraction of email attachments with emldump.py

If you want to extract all attachments and write them to disk, you can use the following command:

emldump.py --jsonoutput sample.eml | myjson-filter.py -W hashvir

This command will produce a MyJSON data structure will the content and metadata of all parts (not only attachments, also the different bodies) and save the parts to disk with filenames formatted as the sha256 hash of the content and the extension .vir.

You can then run the desired analysis commands on the files written to disk.

But you can also run a command directly on the items, without writing them to disk. Here is an example of such a command:

emldump.py --jsonoutput sample.eml | myjson-filter.py -r "cmd.exe /c oledump.py"

This command will start a oledump.py command for each part in the multipart document, and provide the content of each part via stdout.


Quickpost info


No comments yet.


文章来源: https://blog.didierstevens.com/2025/06/05/quickpost-emldump-bulk-extraction/
如有侵权请联系:admin#unsafe.sh