Skip to content

Instantly share code, notes, and snippets.

@JakubVanek
Last active September 16, 2025 21:06
Show Gist options
  • Select an option

  • Save JakubVanek/1254104aac9fc5c45f6bd065c36d0bfe to your computer and use it in GitHub Desktop.

Select an option

Save JakubVanek/1254104aac9fc5c45f6bd065c36d0bfe to your computer and use it in GitHub Desktop.
Windows Server NAT bug reproducer
import socket
def sendit(msg):
with socket.socket(socket.AF_INET, socket.SOCK_DGRAM) as sock:
sock.sendto(msg, ("<FILL SOME IP HERE>", 1234))
# NOTE: you'll probably want to have something listening on that IP.
# I have spawned a Ubuntu Linux VM for this; then I used "nc -k -u -l 1234" to receive the data
for i in range(256):
sendit(b"a"*300)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment