No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

All ports are OPEN. Honeypot.


Dependencies: iptables ipset

Make sure to add these rules to iptables:

iptables -A OUTPUT -p tcp -m tcp --tcp-flags RST RST -j DROP iptables -A OUTPUT -p icmp -m icmp --icmp-type 3 -j DROP iptables -t nat -A PREROUTING -p tcp -m set --match-set set_name dst -j REDIRECT --to-ports 8888

Then run some application, that will listen on 8888 port:

socat TCP-LISTEN:8888,reuseaddr,fork -

will generate ipset within 1-65535 ports range and will exclude currently opened ports.

script that monitor netstat output for newly opened/closed ports, then add it or remove from ipset.