Skip to content

Instantly share code, notes, and snippets.

View CALUGC's full-sized avatar

Lu Hsin Yu CALUGC

View GitHub Profile
@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