# Email Analysis CTF

On 10:hats internal CTF, I create a challenge that require participant to analyze some email that attachment.&#x20;

## Sample&#x20;

<figure><img src="https://3121131891-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQeFYsVgq7Gj5gy3amsLE%2Fuploads%2F8uqArNqEg4XcM3hN9bby%2Fimage.png?alt=media&#x26;token=57dbcdb6-7f16-479d-a99a-a11379669531" alt=""><figcaption></figcaption></figure>

This email I take as sample for challenge. In this eml, it contains more than one electronic mail messages. That means, open up using any Email (thunderbird, gmail and etc), we can only read top first part only. For the rest, it not display some of other part contains attachment.&#x20;

1. Understanding How electronic mail messages Work

* Need to have some beginner skill to read email.&#x20;
* What is important part in email.
* What is DNS, DKIM, hosting etc.

1. Find attachment

<figure><img src="https://3121131891-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQeFYsVgq7Gj5gy3amsLE%2Fuploads%2FHotSbz7FRUbNtqdxUsCh%2Fimage.png?alt=media&#x26;token=bd520579-33ae-43bd-b2bd-23d1e3bfca47" alt=""><figcaption></figcaption></figure>

* Looking into content-type (same as in Burp)
* Get some info about file name and encoding type.

1. Using base64 guru

<figure><img src="https://3121131891-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQeFYsVgq7Gj5gy3amsLE%2Fuploads%2F28D0LAp0wCljnZGagGMr%2Fimage.png?alt=media&#x26;token=4b2b0ad7-39f2-4fd9-8023-eff8ed1fa887" alt=""><figcaption></figcaption></figure>

pst : something you need to understand how it work and manually do instead using tools given. :D
