Skip to content

Instantly share code, notes, and snippets.

@mrpapercut
mrpapercut / raw-dns-req.py
Last active July 12, 2025 19:13
Raw DNS requests with python
#!/usr/bin/env python3
import binascii
import socket
import sys
from collections import OrderedDict
# See https://web.archive.org/web/20180919041301/https://routley.io/tech/2017/12/28/hand-writing-dns-messages.html
# See https://tools.ietf.org/html/rfc1035
@jcttrll
jcttrll / send-ses.sh
Last active April 3, 2025 21:43
Send an e-mail from the command line using AWS SES SMTP
#!/bin/bash -e
set -o pipefail
# PREREQUISITES:
#
# 1. mailx command line utility
# 2. Firewall access to TLS SMTP port 465 on the SES server specified in SES_ENDPOINT, below.
#
# INSTRUCTIONS:
#