Open MatchaOnMuffins opened 2 years ago
@MatchaOnMuffins bro, can you write a code where the nitro check will be without a webhook? And so that the logs are also displayed
@MatchaOnMuffins bro, can you write a code where the nitro check will be without a webhook? And so that the logs are also displayed Just set
"Use_WebHook"
toFalse
Is there any way to make it faster? Doubt it since ratelimiting but, would be nice
One solution could be proxy servers, perhaps?
Yes, proxy servers would work, but it would still take forever to generate a working code
You need private proxies for that, might as well just buy nitro
You need private proxies for that, might as well just buy nitro
exactly
Describe the bug Discord protects its services with the Cloudflare network, which imposes strict API rate limiting. The original Gift Code validity checker
quickChecker
(which relies on spamming the API) will get blocked after roughly 5 requests. The Discord Gift Code API rate limit is roughly 5 requests per minute. This is a fundamental issue (aside from the minuscule chance of getting a valid code by brute-forcing).Desktop:
Smartphone:
Additional context
Working Code
The following is an improved version of the original code, where rate limits are handled by default and the possibility of generating legit Nitro Gift Codes actually exist. However, the chances of getting a valid Nitro Gift Code using any brute-forcing method is roughly $3.12 \times 10^ {-30}$ (if around 10000 Nitro Gift Codes are in circulation at any given moment), so the possibility of obtaining Nitro this way is possibly 28 orders of magnitudes smaller than simply asking a parental figure to purchase it for you and 21 orders of magnitudes smaller than winning the world's biggest lottery.
Other Issues
The URL provided to
quickChecker
inmain
is an address instead of a Gift Code, which will result in a response status code of404 not found
regardless of the Gift Code. changingurl
tocode
in line 120 will fix this. This issue is fixed in the code above. https://github.com/logicguy1/Discord-Nitro-Generator-and-Checker/blob/63d7070234bb2af94ba3caa1db615b1ad83b548e/main.py#L118-L120