A honeypot that binds to a large range of dummy TCP and UDP ports to frustrate network fingerprinting.
Lemmy.org - General purpose Lemmy instance. [Unofficial]
May 30, 2026
submitted by umutcamliyurt to cybersecurity 49 points | 10 comments
Source code and details: github.com/umutcamliyurt/PortTripper
How it works
On startup PortTripper:
- Scans the configured port range and builds a whitelist of ports already in use by real services (first run only).
- Binds TCP and UDP listeners on every port in the range that is not in the whitelist.
- On TCP: accepts connections, holds them open for a configurable duration, then drops them, wasting the scanner’s threads and file descriptors.
- On UDP: reads and discards datagrams without replying, so ports appear
open|filteredto scanners rather thanclosed.
All real service ports are untouched because they are already bound before PortTripper starts, and the auto-generated whitelist tells PortTripper to skip them.
Discussion in the ATmosphere