Skip to content

Simple Python flask app that runs as a web server, and accepts POST requests from your Mailgun routes.

Notifications You must be signed in to change notification settings

ReconInfoSec/mailgun2thehive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mailgun2thehive

Create alerts in The Hive from emails sent to your Mailgun account, to be turned into Hive cases.

Simple Python flask app that runs as a web server, and accepts POST requests from your Mailgun routes.

git clone https://github.com/ReconInfoSec/mailgun2thehive.git /opt/mailgun2thehive

Get up and running:

  • Configure SSL certificate paths in app.py, or remove all context lines if not using SSL
  • Copy init.d/mailgun2thehive.service to /etc/systemd/system/mailgun2thehive.service
  • Set your Hive API key in /etc/systemd/system/mailgun2thehive.service for the HIVE_SECRET_KEY
  • Set your Hive URL in config.py
pip install -r requirements.txt
cp init.d/mailgun2thehive.service /etc/systemd/system/mailgun2thehive.service
systemctl enable mailgun2thehive
systemctl start mailgun2thehive
  • Runs at https://0.0.0.0:5000, accepts POST requests at /create_alert
  • Point your Mailgun route to forward to https://[YOURSERVER]:5000/create_alert

About

Simple Python flask app that runs as a web server, and accepts POST requests from your Mailgun routes.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages