mhddos_proxy
mhddos_proxy copied to clipboard
Pre-allocate random bytes for TCP flood packets
Instead of doing randbytes
on each request, it's better to pre-allocate a few random Mb in a shared memoryview and loop over them (e.g. by moving index with +1 offset on each new request). In this case 1 Mb gives us roughly 1 mln different random packets.