A cli script to analyze an E-Mail in the eml format for viewing the header, extracting attachments etc.
Project description
emlAnalyzer
A cli script to analyze an E-Mail in the eml format for viewing the header, extracting attachments etc.
Installation
Install the package with pip
pip install eml-analyzer
Usage
Type emlAnalyzer --help
to view the help.
usage: emlAnalyzer [OPTION]... [FILE]
A cli script to analyze an E-Mail in the eml format for viewing the header, extracting attachments etc.
optional arguments:
-h, --help show this help message and exit
-i INPUT, --input INPUT
path to the eml-file (is required)
--header Shows the headers
-x, --tracking Shows content which is reloaded from external ressources in the HTML part
-a, --attachments Lists attachments
--text Shows plaintext
--html Shows HTML
-s, --structure Shows structure of the E-Mail
-u, --url Shows embedded links and urls in the html part
-ea EXTRACT, --extract EXTRACT
Extracts the x-th attachment
-o OUTPUT, --output OUTPUT
Path for the extracted attachment (default is filename in working directory)
Examples
Example 1
$ emlAnalyzer -i email_1.eml
=================
|| Structure ||
=================
|- text/html
=========================
|| URLs in HTML part ||
=========================
- https://suspicious.site.com/Zajnad
===============================================
|| Reloaded Content (aka. Tracking Pixels) ||
===============================================
[+] No content found which will be reloaded from external resources
===================
|| Attachments ||
===================
[+] E-Mail contains no attachments
Example 2
$ emlAnalyzer -i email_2.eml
=================
|| Structure ||
=================
|- multipart/mixed
| |- multipart/related
| | |- text/html
| | |- image/jpeg [image002.jpg]
| | |- image/jpeg [image003.jpg]
| | |- image/png [image004.png]
| |- message/rfc822
| | |- multipart/alternative
| | | |- text/plain
| | | |- text/html
=========================
|| URLs in HTML part ||
=========================
- https://example.company.com/random/link
- mailto:john.doe@company.com
===============================================
|| Reloaded Content (aka. Tracking Pixels) ||
===============================================
[+] No content found which will be reloaded from external resources
===================
|| Attachments ||
===================
[1] image002.jpg image/jpeg inline
[2] image003.jpg image/jpeg inline
[3] image004.png image/png inline
Example 3
$ emlAnalyzer -i email_1.eml --header
==============
|| Header ||
==============
From..........................................John Doe <asjkasd@asdasd123.com>
To............................................"bob@company.at" <bob@company.at>
Subject.......................................RANDOM SUBJECT
Thread-Topic..................................RANDOM SUBJECT
X-MS-Exchange-MessageSentRepresentingType.....1
Date..........................................Tue, 19 May 2020 07:02:37 +0000
Accept-Language...............................de-DE, en-US
Content-Language..............................de-DE
X-MS-Exchange-Organization-AuthAs.............Anonymous
X-MS-Has-Attach...............................
X-MS-TNEF-Correlator..........................
x-fireeye.....................................Clean
x-rmx-source..................................123.123.123.123
Content-Type..................................text/html; charset="iso-8859-1"
Content-Transfer-Encoding.....................quoted-printable
MIME-Version..................................1.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
eml-analyzer-1.0.0.tar.gz
(5.5 kB
view details)
Built Distribution
File details
Details for the file eml-analyzer-1.0.0.tar.gz
.
File metadata
- Download URL: eml-analyzer-1.0.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a994848146aa2956bfb199b2083dcdff99ad2c4b768f1db10980fb18fce54ddc |
|
MD5 | 3aed308343cc605e083abc60b74c367d |
|
BLAKE2b-256 | 534732249179481df9fec819d73dd572d854f27506723a0296963c3ccebd7b02 |
File details
Details for the file eml_analyzer-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: eml_analyzer-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34526275016a786e82c1b5dd4a5853c43c2129f4d2b084e156bea1f8cf4de624 |
|
MD5 | 6f0e7611b6ce3db59e5122d4f7d53332 |
|
BLAKE2b-256 | 2a73391fb110d2737f361a43e7de12d8e36bfaf2405cd2f4b912bb1825a6fed7 |