Git Product home page Git Product logo

carmelo0x63 / email-header-dissector Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cyberdefenders/email-header-analyzer

0.0 0.0 0.0 11.17 MB

Email Header Dissector (EHeaD), is a Flask-based app whose purpose is to analyse and clearly display the headers (see RFC822 and newer) of an email message.

License: GNU General Public License v3.0

JavaScript 12.09% Python 39.65% CSS 3.38% Procfile 0.17% HTML 44.71%

email-header-dissector's Introduction

Email Header Dissector (EHeaD)

What is Email Header Dissector (EHeaD)

Email Header Dissector (EHeaD), written in Python and based on Flask aiming at parsing email headers and clearly displaying the information in a human readable format. EHeaD identifies:

  • hop delays
  • the source of the email
  • hop country

NOTE: the tool's name, EHeaD, it to be pronounced e-hɛd (just like e-head)

EHeaD is an alternative to the following:

Name Dev Issues
MessageHeader Google Not showing all the hops
EmailHeaders Mxtoolbox Not accurate and slow
Message Header Analyzer Microsoft Broken UI

Installation

Clone the GitHub repo:

$ git clone https://github.com/carmelo0x99/email-header-dissector.git EHeaD

Create a Python3 virtual environment and activate its dependencies:

$ cd email-header-dissector

$ python3 -m venv .

$ source bin/activate

$ python3 -m pip install -r requirements.txt

Run the development server:

$ cd ehead

$ python3 server.py -d

To make the server accessible from other hosts the following command can be run:

$ python3 server.py -d -b 0.0.0.0 -p 8080

The following (or similar) messages shall be shown on the console:

 * Serving Flask app 'server'
 * Debug mode: on
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on http://127.0.0.1:8080
Press CTRL+C to quit

If that is the case, the application can be reached as follows: http://localhost:8080.

Docker

A Dockerfile is provided if you wish to build a Docker image.

$ docker build -t ehead:latest .

You can then run a container with:

$ docker run -d -p 8080:8080 ehead:latest

Docker-Compose

A docker-compose file is provided if you wish to use docker-compose.

Clone the GitHub repo:

$ git clone https://github.com/carmelo0x99/email-header-dissector.git
$ cd email-header-analyzer

Let docker-compose do the work.

$ docker-compose up -d

Stop the container.

$ docker-compose down

HowTo enable debugging. Add in the docker docker-compose.yaml file the line

command: --debug

email-header-dissector's People

Contributors

lnxg33k avatar carmelo0x63 avatar joelkle avatar xiol avatar staypirate avatar judokus avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.