Skip to content

Instantly share code, notes, and snippets.

View fedelemantuano's full-sized avatar
🏠
Working from home

Fedele Mantuano fedelemantuano

🏠
Working from home
View GitHub Profile
@fedelemantuano
fedelemantuano / ca.md
Created December 17, 2019 05:53 — forked from soarez/ca.md
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.

{
"authentication-results": "mx.google.com;\n dkim=pass header.i=@mail.paypal-survey.com header.s=s1 header.b=Q9ENczdn;\n dkim=pass header.i=@sendgrid.info header.s=smtpapi header.b=F8AQvFdX;\n spf=pass (google.com: domain of bounces+3521694-6259-secret=gmail.com@sends.mail.paypal-survey.com designates 167.89.38.187 as permitted sender) smtp.mailfrom=\"bounces+3521694-6259-secret=gmail.com@sends.mail.paypal-survey.com\";\n dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=paypal-survey.com",
"feedback-id": "838575:ares.decipherinc.com:dcphr",
"x-sg-id": "C2eImUXa5sp9l+cD2/NaOBNSBpts9OQJ5qIhQQ29jMPd23/wHO0aW8rri+X0mXZIztM9Stgr4f1RIw SMF1NY3bHHyvGu98hboIYTbbqunSAb2bJpED3s+HNSmn1I5gqYZxCYSJNKbizKLWJbcuZ4kA==",
"arc-seal": "i=1; a=rsa-sha256; t=1548969976; cv=none;\n d=google.com; s=arc-20160816;\n b=oQHP0nxI3AIYxOopgHqXWyt87e/SWp+COhBIsHaS7DpV0AUvn7faWnZASZEkr76fUV\n 5V8mUT7Adnrmu1+EvV0tvuJP/fKcjNOMdIthemjRvLwdTB/lg6M8kPyXB9FV2kmX0SCp\n lFwDPxAX5ze
@fedelemantuano
fedelemantuano / Dockerfile.postfix-catchall
Last active September 2, 2018 19:38 — forked from adepasquale/Dockerfile.postfix-catchall
Dockerfile for Postfix server with catch-all configuration
FROM alpine:latest
RUN apk add --no-cache postfix postfix-pcre rsyslog
RUN postconf -e "myhostname=localhost" \
&& postconf -e "mynetworks_style=host" \
&& postconf -e "mail_spool_directory=/var/mail/" \
&& postconf -e "virtual_alias_maps=pcre:/etc/postfix/virtual" \
&& echo "/.*/ root" > /etc/postfix/virtual \
&& postmap /etc/postfix/virtual \
{
"body": "<HTML><HEAD><TITLE></TITLE>\n</HEAD>\n<BODY bgcolor=#FFFFFF leftmargin=5 topmargin=5 rightmargin=5 bottommargin=5>\n<FONT size=2 color=#000000 face=\"Arial\">\n<DIV>\n&nbsp;</DIV>\n<DIV>\n&nbsp;</DIV>\n<DIV>\n&nbsp;</DIV>\n<DIV>\n&nbsp;</DIV>\n<DIV>\nDear All,</DIV>\n<DIV>\n </DIV>\n<DIV>\n&nbsp;</DIV>\n<DIV>\nWe have made the payment of USD 103,349,35. TT copy attached for full payment details.</DIV>\n<DIV>\n&nbsp;</DIV>\n<DIV>\n </DIV>\n<DIV>\n&nbsp;</DIV>\n<DIV>\n<FONT size=4><B>Document&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; N.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AMOUNT DIV.</B></FONT></DIV>\n<DIV>\n<FONT size=3>&nbsp;</FONT></DIV>\n<DIV>\n<FONT size=3>INVOICE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5328&nbsp; 103548,25 USD</FONT></DIV>\n<DIV>\n<FONT size=3>&nbsp;</FONT></DIV>\n<DIV>\n<FONT size=3>CREDIT NOTE ECS/CN/06&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -198,9 USD</FONT></DI
{
"attachments": [
{
"files": [
{
"sha1": "03cbac8c13035fa930a51fffcd6666cf4cd9dfdb",
"virustotal": {
"response_code": 200,
"results": {
"scan_id": "d07fe1e95fb686c9f74774586d80dde0bec257382a6fbf667f08e2d316b7dd01-1487943477",
@fedelemantuano
fedelemantuano / spamscope_attachments.json
Created April 7, 2017 19:24
SpamScope analysis of mail attachment with Apache Tika report
{
"_index": "spamscope_attachments-2017.04.07",
"_type": "analysis",
"_id": "AVtIhUYj0i4Vuzn4VlSW",
"_score": 1,
"_source": {
"files": [
{
"sha1": "d2b7aa5b064f6d4f62fdaf903407f9c63e9d9ac5",
"extension": ".zip",
@fedelemantuano
fedelemantuano / spamscope.json
Last active December 15, 2016 20:10
SpamScope complete analysis
This file has been truncated, but you can view the full file.
{
"attachments": [
{
"files": [
{
"sha1": "7f460daec03c09b23c5d6b4fd0a329715505d632",
"virustotal": {
"response_code": 200,
"results": {
"scan_id": "dcfe9d2dd88d483a16462db5ad21918d5c46e3df9357c272e865acb649246996-1481831499",
{
"attachments": [
{
"files": [
{
"sha1": "03cbac8c13035fa930a51fffcd6666cf4cd9dfdb",
"extension": ".exe",
"Content-Type": "application/x-dosexec",
"analisys_date": "2017-08-13T14:30:38.835704",
"filename": "IMG-PO-492384BA_outputB93880.exe",
@fedelemantuano
fedelemantuano / 1471832668.1377_3.ivanova.orig
Last active December 30, 2017 13:45
Example of mail with attachments from http://untroubled.org/ - Example for SpamScope
Delivered-To: bruce@untroubled.org
Received: (fqmail 26559 invoked from network); 21 Aug 2016 10:49:40 -0000
Received: from mx03.futurequest.net (mx03.futurequest.net [69.5.6.174])
by pt02.futurequest.net ([69.5.6.173])
with FQDP via TCP; 21 Aug 2016 10:49:40 -0000
Received: (qmail 19675 invoked from network); 21 Aug 2016 10:49:40 -0000
Received: from localhost.localdomain.com (mail.revesoft.com [208.74.72.248])
by mx03.futurequest.net ([69.5.6.174])
with ESMTP via TCP; 21 Aug 2016 10:49:39 -0000
Received: from host86-187-174-57.range86-187.btcentralplus.com ([86.187.174.57]:45321 helo=User)

Keybase proof

I hereby claim:

  • I am fedelemantuano on github.
  • I am fmantuano (https://keybase.io/fmantuano) on keybase.
  • I have a public key whose fingerprint is 4B91 0A21 EEAF 247F 74E2 678C 0494 AFF4 24BA 2A0A

To claim this, I am signing this object: