Skip to content

Instantly share code, notes, and snippets.

View chaosong's full-sized avatar
🍺
homebrew

chaosong

🍺
homebrew
View GitHub Profile
@chaosong
chaosong / reply-to-empty-udp.py
Created January 6, 2023 02:25 — forked from jcwarp/reply-to-empty-udp.py
Simple Python UDP echo server
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Author: David Manouchehri <[email protected]>
# This script will always echo back data on the UDP port of your choice.
# Useful if you want nmap to report a UDP port as "open" instead of "open|filtered" on a standard scan.
# Works with both Python 2 & 3.
import socket