Skip to content

referefref/spamhat-ng

 
 

Repository files navigation

SpamHAT

SpamHAT is a Simple Open Relay Simulator for Spam Capture and Analysis written in Perl, and designed to be run on Debian with MySQL as a logging backend. The original project was created by Miguel Raúl Bautista Soria for the UNAM (National Autonomous University of Mexico) chapter of the Honeynet Project in 2015 and contains a number of modules for handling different aspects of email payloads such as attachments, binaries, domains, IP addresses, subjects and URLs allowing it to respond differently to content within the email such as downloading URL payloads within the email, checking the email subject from a blocklist of patterns, generic regex parsing (emails, domains, IP addresses etc), hashing binary payloads, and storing attachments.

The project has been modernised with carton, MariaDB and docker for simple deployment and management.

Installation

wget https://raw.githubusercontent.com/referefref/spamhat-ng/master/docker-compose.yaml
docker compose up -d

Note

The password for MariaDB is set in both the docker-compose file and the spampot-ng.conf file. If you wish to modify this, you'll need to rebuild the docker image and update the docker-compose to use your newly generated image.

Examples

image image

Languages

  • Perl 98.0%
  • Dockerfile 1.2%
  • Shell 0.8%