d0rb/CVE-2024-6387 ? reverse-engineered prompt

Reverse engineered prompt

Build me a small Python tool that demonstrates the OpenSSH CVE 2024 6387 issue in a safe lab setting, without giving real attack steps or trying to break into anything. I want it to take a target host and port, support both IPv4 and IPv6, and try the same kind of repeated timed connection attempts so I can see how a race condition can be stressed in a controlled test environment.

Please make it stop cleanly when a run succeeds or when the maximum attempts are reached, and let me tune things like number of threads, attempt count, and timing delays from the command line. If you need to look up current docs online, go ahead. Also include clear warnings and simple usage examples, and keep the code easy to read so I can understand what is happening step by step.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab