Comment on [deleted]
Paulemeister@feddit.org 5 days ago
Does anyone understand why the DDOS script is written so weirdly? (100 -1 +1)? Why fetch multiple times per iteration?
Comment on [deleted]
Paulemeister@feddit.org 5 days ago
Does anyone understand why the DDOS script is written so weirdly? (100 -1 +1)? Why fetch multiple times per iteration?
KernelTale@programming.dev 5 days ago
I think the 100 - 1 + 1 is that he learnt a pattern like: rand() % (upper bound - lower bound + 1) without understanding it which gets a number between 100 and 1. Then because it gets rounded down he adds 1. For the multiple fetches some are for different API entrances which could be individually limited??? and duplicates maybe for… I want around 50% to be at this? It’s a bit hard to read and remember whole typing on a phone.