I am doing some research and I need a very quick way to scan for open ports on a single machine. To provide some context, I know that my machine will have a port open waiting for UDP packets for about 3 seconds. That is all I have. I also know that it is in the range of port 50000 to 62000.
Long story short, how can I scan 12000 ports in less than 3 seconds?
I tried to find the answer myself first. I put my hopes in zmap but it seems to work on different IPs, not different ports for a single IP.
I played with nmap with -T5 and --min-parallelism/max-parallelism but it takes minutes to scan those 12k ports.